Name: libticables2 Epoch: 1 Version: 1.2.0 Release: 1 Vendor: LPG (http://lpg.ticalc.org) Packager: Tyler Cassidy Source: %{name}-%{version}.tar.bz2 Group: System Environment/Libraries License: GPL BuildRequires: libusb-devel, glib2-devel >= 2.4.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.4.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}/libticables2.la mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d cat >$RPM_BUILD_ROOT/etc/udev/rules.d/60-libticables.rules <$RPM_BUILD_ROOT/etc/security/console.perms.d/60-libticables.perms <=/dev/ticable* /dev/usb/ticable* =/dev/ttyS* =/dev/parport* # permission definitions 0600 0600 root 0660 0660 root.uucp 0660 0660 root.lp EOF2 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_libdir}/libticables2.so.* %{_sysconfdir}/udev/rules.d/60-libticables.rules %{_sysconfdir}/security/console.perms.d/60-libticables.perms %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}/libticables2.so %{_libdir}/pkgconfig/ticables2.pc %files apidocs %defattr(-, root, root) %{_datadir}/doc/%{name}/html %changelog * Sat Jan 17 2009 Tyler Cassidy 1:1.2.0-1 Updated from 1.0.6 to 1.2.0 * Sun Jul 8 2007 Tyler Cassidy 1:1.0.6-1 Modified for CentOS 5. * Thu May 31 2007 Kevin Kofler 1:1.0.6-1 Update to 1.0.6. * Wed May 16 2007 Kevin Kofler Drop -n libticables, the tarball uses name-version format now. Add BR tfdocgen and apidocs subpackage. Package non-API documentation files in main package. * Thu May 3 2007 Kevin Kofler Give access to serial and parallel ports in the pam_console configuration. * Mon Apr 16 2007 Kevin Kofler 1:1.0.5-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. * Sun Oct 15 2006 Kevin Kofler Add non-SE TI-84+ to the pam_console configuration. * 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. * Sun Jul 23 2006 Kevin Kofler Fix incorrect escaping in console.perms.d file. * 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). Use /etc/security/console.perms.d for the pam_console setup instead of hand-written script hack. * 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 License now GPL (with exception for TilEm). Add missing glib2 BuildRequires/Requires. Now requires libticonv. Convert hotplug rules to udev rules and add DirectLink DeviceIDs. * Sat Feb 11 2006 Kevin Kofler Update setup -n to use the new directory name (libticables, not libticables2). * Sun Jan 29 2006 Kevin Kofler Strip library because -s gets ignored somehow. * Wed Jan 4 2006 Kevin Kofler Change Vendor to LPG. * Wed Sep 14 2005 Kevin Kofler Update to libticables-2: new package name, updated file list. * Wed Jun 22 2005 Kevin Kofler SilverLink support (based on Julien Blache's Debian packages and Nalin Dahyabhai's usbcam script) * Sun Jun 19 2005 Kevin Kofler Change Copyright to License. Don't list cabl_def.h twice. * Mon May 2 2005 Kevin Kofler First Fedora RPM.