%define tilp_version 1.17 Name: libtifiles2 Version: 1.1.6 Release: 3%{?dist} Summary: Texas Instruments calculator files library Group: Development/Libraries License: GPLv2+ URL: https://sourceforge.net/projects/tilp/ Source0: http://sourceforge.net/projects/tilp/files/tilp2-linux/tilp2-%{tilp_version}/%{name}-%{version}.tar.bz2 BuildRequires: glib2-devel, zlib-devel, pkgconfig, libticonv-devel, tfdocgen, libarchive-devel, gettext %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %package doc Group: Documentation Summary: HTML documentation for %{name} BuildArch: noarch %description The tifiles library is a library capable of reading, modifying, and writing TI formatted files. It can also group/ungroup files. This library is able to manipulate files in a fairly transparent fashion. With this library, the developer does not have to worry about the different file formats. %description devel Include files and libraries for developing applications that make use of libtifiles. %description doc HTML documentation for linking and developing applications using libtifiles2. %prep %setup -q sed -i 's/\r$//' docs/html/style.css sed -i 's/\r$//' docs/html/clean.bat rm po/fr.gmo %build %configure --disable-static make %{?_smp_mflags} make -C po fr.gmo %install make install DESTDIR=%{buildroot} rm %{buildroot}%{_libdir}/libtifiles2.la make -C docs install DESTDIR=%{buildroot} # The docs install makefile does this, but we want it to go into # licenses. rm %{buildroot}/%{_pkgdocdir}/COPYING %find_lang %{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %{_libdir}/libtifiles2.so.* %doc %{_pkgdocdir}/README %doc %{_pkgdocdir}/AUTHORS %doc %{_pkgdocdir}/ChangeLog %license COPYING %files doc %doc %{_pkgdocdir}/html/ %files devel %{_libdir}/libtifiles2.so %{_libdir}/pkgconfig/tifiles2.pc %{_includedir}/tilp2/export2.h %{_includedir}/tilp2/files8x.h %{_includedir}/tilp2/files9x.h %{_includedir}/tilp2/stdints2.h %{_includedir}/tilp2/tifiles.h %{_includedir}/tilp2/types73.h %{_includedir}/tilp2/types82.h %{_includedir}/tilp2/types83.h %{_includedir}/tilp2/types83p.h %{_includedir}/tilp2/types84p.h %{_includedir}/tilp2/types85.h %{_includedir}/tilp2/types86.h %{_includedir}/tilp2/types89.h %{_includedir}/tilp2/types89t.h %{_includedir}/tilp2/types92.h %{_includedir}/tilp2/types92p.h %{_includedir}/tilp2/typesnsp.h %{_includedir}/tilp2/typesv2.h %{_includedir}/tilp2/typesxx.h %changelog * Fri Feb 27 2015 'Ben Rosser' 1.1.6-3 - Fixed a problem where documentation files would be duplicated. - Made the -doc subpackage noarch and removed dependency on libtifiles2. - Changed spec to remove prebuild *.gmo file and rebuild it. * Tue Feb 24 2015 'Ben Rosser' 1.1.6-2 - Fixed localization to use lang_find macro. - Fixed wrong end of file encodings on some documentation files. * Mon Feb 23 2015 'Ben Rosser' 1.1.6-1 - Bumped release number. - Added license tag and missing documentation files. - Added doc subpackage for the HTML documentation. * Sat Apr 20 2013 'Ben Rosser' 1.1.6-0 - Updated to latest upstream tilp version * Wed Jul 11 2012 'Ben Rosser' 1.1.5-3 - Added full documentation, built by tfdocgen * Wed Jun 20 2012 'Ben Rosser' 1.1.5-2 - Added devel subpackage dependency on parent package * Wed Jun 20 2012 'Ben Rosser' 1.1.5-1 - Removed libtool archive from package * Tue Jun 19 2012 'Ben Rosser' 1.1.5-0 - Upgraded to version 1.1.5 - Added a -devel subpackage for the library files - Vastly improved spec file * Sat Jul 30 2011 'Ben Rosser' 1.1.4-0 - Initial version of the package