summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore9
-rw-r--r--Makefile2
-rw-r--r--pdflib-lite.spec25
3 files changed, 20 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6f69818
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+clog
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.bz2
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/Makefile b/Makefile
index 1e65467..91b0fd5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../common/Makefile
+include ../../common/Makefile
diff --git a/pdflib-lite.spec b/pdflib-lite.spec
index 43401d1..d94a8e0 100644
--- a/pdflib-lite.spec
+++ b/pdflib-lite.spec
@@ -5,16 +5,17 @@ Summary: Portable C library for dynamically generating PDF files
Name: pdflib-lite
# Remenber to check the URL after changing this...
Version: 7.0.5
-Release: 5%{?dist}
+Release: 6%{?dist}
License: Distributable
-Group: System Environment/Libraries
URL: http://www.pdflib.com/
Source: http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-%{version}.tar.gz
Patch0: pdflib-lite-7.0.4-gcc43.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: gcc
+BuildRequires: gcc-c++
+
%description
PDFlib is a development tool for PDF-enabling your software,
@@ -25,7 +26,6 @@ for generating PDF, nor does it require any other tools.
%package devel
Summary: Development files for pdflib
-Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
@@ -40,7 +40,6 @@ the PDFlib library.
%package python
Summary: Python shared library for pdflib
-Group: System Environment/Libraries
BuildRequires: python-devel
Requires: %{name} = %{version}-%{release}
Provides: python-pdflib = %{version}-%{release}
@@ -57,7 +56,6 @@ that will use the PDFlib library.
%package perl
Summary: Perl shared library for pdflib
-Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Provides: perl-pdflib = %{version}-%{release}
@@ -106,7 +104,7 @@ do
done
%install
-rm -rf %{buildroot} examples
+rm -rf examples
mkdir -p %{buildroot}%{python_sitearch}
mkdir -p %{buildroot}%{perl_vendorarch}
@@ -154,16 +152,13 @@ cp bind/pdflib/php/examples.php5/*.php \
examples/php
-%clean
-rm -rf %{buildroot}
-
-
+%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%endif
%files
-%defattr(-, root, root, -)
%doc readme.txt doc/pdflib/PDFlib-Lite-license.pdf
%{_bindir}/pdfimage
%{_bindir}/text2pdf
@@ -171,7 +166,6 @@ rm -rf %{buildroot}
%files devel
-%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%doc doc/pdflib/changes.txt doc/pdflib/compatibility.txt examples
%doc doc/pdflib/PDFlib-API-reference.pdf doc/pdflib/PDFlib-tutorial.pdf doc/pdflib/readme-source-unix.txt
@@ -181,18 +175,19 @@ rm -rf %{buildroot}
%files python
-%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%{python_sitearch}/pdflib_py.so*
%files perl
-%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%{perl_vendorarch}/pdflib_pl.*
%changelog
+* Mon Feb 26 2018 Remi Collet <remi@remirepo.net> - 7.0.5-6
+- F28 cleanup
+
* Fri Aug 28 2015 Remi Collet <Fedora@FamilleCollet.com> 7.0.5-5
- rebuild