diff --git a/README.md b/README.md index c176681..34db5f1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libzmf +Libzmf is a library that parses the file format of Zoner Callisto/Draw documents. Currently it only understands documents created by Zoner Draw version 4 and 5 + diff --git a/libzmf.spec b/libzmf.spec new file mode 100644 index 0000000..50f1791 --- /dev/null +++ b/libzmf.spec @@ -0,0 +1,90 @@ +Name: libzmf +Version: 0.0.2 +Release: 1mamba +Summary: A library that parses the file format of Zoner Callisto/Draw documents +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: https://wiki.documentfoundation.org/DLP/Libraries/libzmf +Source: http://dev-www.libreoffice.org/src/libzmf/libzmf-%{version}.tar.xz +License: MPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libicu-devel +BuildRequires: libpng-devel +BuildRequires: librevenge-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Libzmf is a library that parses the file format of Zoner Callisto/Draw documents. Currently it only understands documents created by Zoner Draw version 4 and 5 + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Publishing +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make CXXFLAGS="%{optflags} -std=c++11" + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libzmf-0.0.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libzmf-0.0 +%dir %{_includedir}/libzmf-0.0/libzmf +%{_includedir}/libzmf-0.0/libzmf/* +%{_libdir}/libzmf-0.0.la +%{_libdir}/libzmf-0.0.so +%{_libdir}/pkgconfig/libzmf-0.0.pc +%dir %{_datadir}/doc/libzmf +%dir %{_datadir}/doc/libzmf/html +%{_datadir}/doc/libzmf/html/* +%doc ChangeLog NEWS README + +%files tools +%defattr(-,root,root) +%{_bindir}/zmf2raw +%{_bindir}/zmf2svg + +%changelog +* Tue Nov 21 2017 Automatic Build System 0.0.2-1mamba +- automatic update by autodist + +* Wed Sep 13 2017 Ercole 'ercolinux' Carpanetto 0.0.1-1mamba +- package created using the webbuild interface