libmspack/libmspack.spec
Marc Wiriadisastra b9fcf5ae2b Rebuild for gcc4.3
2008-02-13 10:16:28 +00:00

113 lines
3.2 KiB
RPMSpec

Name: libmspack
Version: 0.0
Release: 0.5.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
* Wed Feb 13 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.5-20060920alpha
- Rebuild for gcc4.3
* Sun Jan 20 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.4.20060920alpha
- installed documentation into html subdir
- manually installed doc's for main package
* Sun Jan 20 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 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 <marc@mwiriadi.id.au> - 0.0-0.2.20060920alpha
- Changed install script for doc package
- Fixed rpmlint issue with debug package
* Fri Jan 18 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 20060920cvs.a-1
- Initial release