From e62f6c94bf65d734743ae728565f696e0f2b8dfa Mon Sep 17 00:00:00 2001 From: Marc Wiriadisastra Date: Mon, 21 Jan 2008 21:40:25 +0000 Subject: [PATCH] Initial release --- .cvsignore | 1 + libmspack.spec | 109 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 111 insertions(+) create mode 100644 libmspack.spec diff --git a/.cvsignore b/.cvsignore index e69de29..3e47171 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libmspack-0.0.20060920alpha.tar.gz diff --git a/libmspack.spec b/libmspack.spec new file mode 100644 index 0000000..22f7821 --- /dev/null +++ b/libmspack.spec @@ -0,0 +1,109 @@ +Name: libmspack +Version: 0.0 +Release: 0.4.20060920alpha%{?dist} +Summary: Library for CAB and related files compression and decompression + +Group: System Environment/Libraries +License: LGPLv2 +URL: http://www.cabextract.org.uk/libmspack/ +Source0: http://www.cabextract.org.uk/libmspack/libmspack-0.0.20060920alpha.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + + +%description +The purpose of libmspack is to provide both compression and decompression of +some loosely related file formats used by Microsoft. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%package doc +Summary: Documentation files for %{name} +Group: Documentation + + +%description doc +The %{name}-doc package contains the documentation for developing +applications using %{name}-devel. + +%prep +%setup -q -n libmspack-0.0.20060920alpha +chmod a-x mspack/mspack.h + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' +rm $RPM_BUILD_ROOT%{_libdir}/libmspack.la + +iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8 +touch -r ChangeLog Changelog.utf8 +mv Changelog.utf8 ChangeLog + +# install the html documentation in the main package directory +mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html +install -p -m 0644 doc/*.html doc/*.gif doc/*.png doc/*.css \ + $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/ +# install also the main package documentation files manually since +# %%doc isn't used for these files +install -p -m 0644 README TODO COPYING.LIB ChangeLog AUTHORS \ + $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%dir %{_docdir}/%{name}-%{version}/ +%doc %{_docdir}/%{name}-%{version}/README +%doc %{_docdir}/%{name}-%{version}/TODO +%doc %{_docdir}/%{name}-%{version}/COPYING.LIB +%doc %{_docdir}/%{name}-%{version}/ChangeLog +%doc %{_docdir}/%{name}-%{version}/AUTHORS +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc +%{_includedir}/* +%{_libdir}/*.so + +%files doc +%defattr(-,root,root,-) +%dir %{_docdir}/%{name}-%{version}/ +%doc %{_docdir}/%{name}-%{version}/html/ + +%changelog +* Sun Jan 20 2008 Marc Wiriadisastra - 0.0-0.4.20060920alpha +- installed documentation into html subdir +- manually installed doc's for main package + +* Sun Jan 20 2008 Marc Wiriadisastra - 0.0-0.3.20060920alpha +- Got source using wget -N +- Removed some doc's +- Shifted doc line for doc package +- Added install -p + +* Sun Jan 20 2008 Marc Wiriadisastra - 0.0-0.2.20060920alpha +- Changed install script for doc package +- Fixed rpmlint issue with debug package + +* Fri Jan 18 2008 Marc Wiriadisastra - 20060920cvs.a-1 +- Initial release diff --git a/sources b/sources index e69de29..5ba8fb6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +72003dfa5da2e843e3d5ae0c18f7c969 libmspack-0.0.20060920alpha.tar.gz