Name: libticonv Epoch: 1 Version: 1.1.0 Release: 1 Vendor: LPG (http://lpg.ticalc.org) Packager: Tyler Cassidy Source: %{name}-%{version}.tar.bz2 Group: System Environment/Libraries License: GPL BuildRequires: glib2-devel >= 2.6.0, tfdocgen BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Summary: Library for handling TI link cables %description Library for handling TI link cables %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Requires: pkgconfig, glib2-devel >= 2.6.0 %description devel This package contains the files necessary to develop applications using the %{name} library. %package apidocs Summary: API documentation for %{name} Group: Development/Documentation Requires: %{name} = %{epoch}:%{version}-%{release} %description apidocs This package contains the API documentation for the %{name} library in HTML format. %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-nls make %install if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/libticonv.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_libdir}/libticonv.so.* %dir %{_datadir}/doc/%{name} %{_datadir}/doc/%{name}/AUTHORS %{_datadir}/doc/%{name}/COPYING %{_datadir}/doc/%{name}/ChangeLog %{_datadir}/doc/%{name}/README %files devel %defattr(-, root, root) %{_includedir}/tilp2 %{_libdir}/libticonv.so %{_libdir}/pkgconfig/ticonv.pc %files apidocs %defattr(-, root, root) %{_datadir}/doc/%{name}/charsets %{_datadir}/doc/%{name}/html %changelog * Wed Jan 21 2009 1:1.1.0-1 Updated to Version 1.1.0-1. * Sun Jul 8 2007 1:1.0.2-1 Modified for CentOS 5. * Wed May 16 2007 Kevin Kofler Drop -n libticonv, the tarball uses name-version format now. Add BR tfdocgen and apidocs subpackage. Package non-API documentation files in main package. * Mon Apr 16 2007 Kevin Kofler 1:1.0.2-1 Bump Epoch. Use real version number instead of date. * Mon Apr 16 2007 Kevin Kofler Remove redundant explicit Requires. Don't BuildRequire newer versions than actually needed. * Mon Sep 25 2006 Kevin Kofler Split out -devel into separate subpackage. Own /usr/include/tilp2 in -devel. Use more efficient method to call ldconfig in post/postun. * Thu Jul 20 2006 Kevin Kofler Libdir fixes for lib64 platforms. Add Provides for future -devel subpackage. * Fri Jun 16 2006 Kevin Kofler Remove redundant %%defattr at the end of %%files. * Wed Jun 7 2006 Kevin Kofler Update file list (stdints.h now numbered to avoid conflicts). Don't delete stdints.h anymore. Don't require libticables2 anymore. * Wed May 24 2006 Kevin Kofler Don't package .la file (not needed under Fedora). Make sure permissions are set correctly when building as non-root. * Mon May 22 2006 Kevin Kofler Build debuginfo RPM. Use the system-wide default RPM_OPT_FLAGS instead of my own. Use BuildRoot recommended by the Fedora packaging guidelines. * Sun May 7 2006 Kevin Kofler First Fedora RPM.