Annotation of embedaddon/confuse/libconfuse.spec.in, revision 1.1

1.1     ! misho       1: %define _srcname       @PACKAGE@
        !             2: %define _name          lib%{_srcname}
        !             3: %define _version       @VERSION@
        !             4: %define _rel           1
        !             5: 
        !             6: %define _prefix        /usr
        !             7: %define _pkgdoc        %{_docdir}/%{_name}
        !             8: 
        !             9: %define _suse  %(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)
        !            10: 
        !            11: %if %_suse
        !            12: %define _suse_version  %(grep VERSION /etc/SuSE-release|cut -f3 -d" ")
        !            13: %define _suse_vernum           %(echo "%_suse_version"|tr -d '.')
        !            14: %define _release                       %{_rel}suse%{_suse_vernum}
        !            15: %define _has_distro            1
        !            16: %define _distribution  SuSE Linux %_suse_version
        !            17: %define _group                         Development/Libraries/C and C++
        !            18: %else
        !            19: %define _release                       %_rel
        !            20: %define _has_distro            0
        !            21: %define _group                         Development/Libraries
        !            22: %endif
        !            23: 
        !            24: Summary:                       A library for parsing configuration files
        !            25: Name:                          %{_name}
        !            26: Version:                       %{_version}
        !            27: Release:                       %{_release}
        !            28: Source:                        http://savannah.nongnu.org/download/confuse//%{_srcname}-%{_version}.tar.gz
        !            29: URL:                           http://www.nongnu.org/confuse/
        !            30: Group:                 %{_group}
        !            31: Packager:              Pascal Bleser <guru@unixtech.be>
        !            32: Copyright:             ISC
        !            33: BuildRoot:             %{_tmppath}/build-%{_name}-%{_version}
        !            34: BuildRequires:     xmlto doxygen
        !            35: Prefix:                        %{_prefix}
        !            36: %if %_has_distro
        !            37: Distribution:  %_distribution
        !            38: %endif
        !            39: 
        !            40: %description
        !            41: libConfuse is a configuration file parser library written in C.
        !            42: It supports sections and (lists of) values (strings, integers,
        !            43: floats, booleans or other sections), as well as some other features
        !            44: (such as single/double-quoted strings, environment variable expansion,
        !            45: functions and nested include statements).
        !            46: 
        !            47: It makes it easy to add configuration file capability to a
        !            48: program using a simple API. LibConfuse aims to be easy to use and
        !            49: quick to integrate with your code.
        !            50: 
        !            51: %package devel
        !            52: Summary:               Development Environment for %{_name}
        !            53: Group:                 %{_group}
        !            54: Requires:              %{_name} = %{_version}
        !            55: 
        !            56: %description devel
        !            57: Development Environment for %{_name}
        !            58: 
        !            59: Documentation and examples can be found in %{_pkgdoc}/doc
        !            60: and %{_pkgdoc}/examples respectively.
        !            61: 
        !            62: %changelog
        !            63: * Fri May 21 2004 Martin Hedenfalk <mhe@home.se> 2.3-%{_rel}suse%{_suse_vernum}
        !            64: - New upstream version, updated URLs
        !            65: * Sat Apr 05 2003 Martin Hedenfalk <mhe@home.se> 2.0-%{_rel}suse%{_suse_vernum}
        !            66: - removed doxygen dependence as pre-built documentation are now included
        !            67: * Fri Mar 28 2003 Pascal Bleser <guru@unixtech.be> 1.2.3-%{_rel}suse%{_suse_vernum}
        !            68: - first RPM
        !            69: 
        !            70: %prep
        !            71: %setup -q -n "%{_srcname}-%{_version}"
        !            72: CFLAGS="${RPM_OPT_FLAGS}" \
        !            73: ./configure \
        !            74:        --prefix="%{_prefix}" \
        !            75:        --enable-shared
        !            76: 
        !            77: %build
        !            78: %{__make}
        !            79: 
        !            80: %install
        !            81: %{__rm} -rf "${RPM_BUILD_ROOT}"
        !            82: %{__make} \
        !            83:        DESTDIR="${RPM_BUILD_ROOT}" \
        !            84:        install-strip
        !            85: 
        !            86: %{__mkdir_p} "${RPM_BUILD_ROOT}%{_mandir}"
        !            87: cp -R doc/man/* "${RPM_BUILD_ROOT}%{_mandir}/"
        !            88: 
        !            89: %{__mkdir_p} "${RPM_BUILD_ROOT}%{_pkgdoc}"
        !            90: echo -n > _rpm_doc_files_
        !            91: for f in AUTHORS COPYING NEWS README; do
        !            92:        %{__cp} "$f" "${RPM_BUILD_ROOT}%{_pkgdoc}/$f"
        !            93:        echo "%doc %{_pkgdoc}/$f" >> _rpm_doc_files_
        !            94: done
        !            95: %{__make} -C examples clean
        !            96: %{__rm} examples/Makefile*
        !            97: %{__rm} -rf doc/man
        !            98: %{__cp} -R examples doc "${RPM_BUILD_ROOT}%{_pkgdoc}/"
        !            99: 
        !           100: %clean
        !           101: %{__rm} -rf "${RPM_BUILD_ROOT}"
        !           102: 
        !           103: %post
        !           104: echo Updating dynamic linker cache...
        !           105: /sbin/ldconfig
        !           106: 
        !           107: %postun
        !           108: echo Updating dynamic linker cache...
        !           109: /sbin/ldconfig
        !           110: 
        !           111: %files -f _rpm_doc_files_
        !           112: %defattr(-,root,root)
        !           113: %{_libdir}/lib*.so.*
        !           114: %{_datadir}/locale/*/LC_MESSAGES/*
        !           115: 
        !           116: %files devel
        !           117: %defattr(-,root,root)
        !           118: %doc %{_pkgdoc}/examples
        !           119: %doc %{_pkgdoc}/doc
        !           120: %{_includedir}/*
        !           121: %{_libdir}/lib*.a
        !           122: %{_libdir}/lib*.la
        !           123: %{_libdir}/lib*.so
        !           124: %doc %{_mandir}/man*/*
        !           125: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>