[packages/openslide] - new
qboosh
qboosh at pld-linux.org
Sun Dec 23 18:50:25 CET 2018
commit b276bce95de20196d9eb8bc3c017b95ddc7c6064
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 23 18:54:59 2018 +0100
- new
openslide.spec | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 136 insertions(+)
---
diff --git a/openslide.spec b/openslide.spec
new file mode 100644
index 0000000..8a6c53e
--- /dev/null
+++ b/openslide.spec
@@ -0,0 +1,136 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
+Summary: C library for reading virtual slides
+Summary(pl.UTF-8): Biblioteka C do odczytu wirtualnych slajdów
+Name: openslide
+Version: 3.4.1
+Release: 1
+License: LGPL v2.1
+Group: Libraries
+#Source0Download: https://github.com/openslide/openslide/releases/
+Source0: https://github.com/openslide/openslide/releases/download/v%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: ad9fa84775ed6b505d6f50bf6420c6bf
+URL: https://openslide.org/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.11.1
+BuildRequires: cairo-devel >= 1.2
+BuildRequires: gdk-pixbuf2-devel >= 2.14
+BuildRequires: glib2-devel >= 1:2.16
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel >= 2:1.2.1
+BuildRequires: libtiff-devel >= 4
+BuildRequires: libtool >= 2:2.2.5
+BuildRequires: libxml2-devel >= 2.0
+BuildRequires: openjpeg2-devel >= 2.1.0
+BuildRequires: pkgconfig
+BuildRequires: sqlite3-devel >= 3.6.20
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRequires: zlib-devel
+Requires: cairo >= 1.2
+Requires: gdk-pixbuf2 >= 2.14
+Requires: glib2 >= 1:2.16
+Requires: libpng >= 2:1.2.1
+Requires: openjpeg2 >= 2.1.0
+Requires: sqlite3 >= 3.6.20
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The OpenSlide library allows programs to access virtual slide files
+regardless of the underlying image format.
+
+%description -l pl.UTF-8
+Biblioteka OpenSlide pozwala programom na dostęp do plików wirtualnych
+slajdów niezależnie od ich formatu.
+
+%package devel
+Summary: Header files for OpenSlide library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenSlide
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for OpenSlide library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OpenSlide.
+
+%package static
+Summary: Static OpenSlide library
+Summary(pl.UTF-8): Statyczna biblioteka OpenSlide
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static OpenSlide library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka OpenSlide.
+
+%package tools
+Summary: Command line tools for working with virtual slides
+Summary(pl.UTF-8): Narzędzia linii poleceń do pracy z wirtualnymi slajdami
+Group: Applications/Graphics
+Requires: %{name} = %{version}-%{release}
+
+%description tools
+Command line tools for working with virtual slides.
+
+%description tools -l pl.UTF-8
+Narzędzia linii poleceń do pracy z wirtualnymi slajdami.
+
+%prep
+%setup -q
+
+%build
+# rebuild ac/am/lt for as-needed to work
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-silent-rules \
+ %{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libopenslide.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.txt LICENSE.txt README.txt
+%attr(755,root,root) %{_libdir}/libopenslide.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopenslide.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopenslide.so
+%{_includedir}/openslide
+%{_pkgconfigdir}/openslide.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libopenslide.a
+%endif
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/openslide-quickhash1sum
+%attr(755,root,root) %{_bindir}/openslide-show-properties
+%attr(755,root,root) %{_bindir}/openslide-write-png
+%{_mandir}/man1/openslide-quickhash1sum.1*
+%{_mandir}/man1/openslide-show-properties.1*
+%{_mandir}/man1/openslide-write-png.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openslide.git/commitdiff/b276bce95de20196d9eb8bc3c017b95ddc7c6064
More information about the pld-cvs-commit
mailing list