Commit 65c667eef9db35b9f95245a230600eb1f9a3aaeb

Authored by Jay Berkenbilt
1 parent be72eab9

Remove RPM spec file

Most Linux distributions include qpdf now, so there is no need to
distribute our own spec file.
README.maintainer
... ... @@ -46,7 +46,6 @@ Release Reminders
46 46 locations:
47 47  
48 48 configure.ac
49   - qpdf.spec
50 49 libqpdf/QPDF.cc
51 50 manual/qpdf-manual.xml
52 51  
... ...
make_dist
... ... @@ -72,17 +72,6 @@ while (<$fh>)
72 72 }
73 73 $fh->close();
74 74  
75   -$fh = safe_open("qpdf.spec");
76   -my $spec_version = 'unknown';
77   -while (<$fh>)
78   -{
79   - if (m/Version: (.*)$/)
80   - {
81   - $spec_version = $1;
82   - last;
83   - }
84   -}
85   -
86 75 my $version_error = 0;
87 76 if ($version ne $config_version)
88 77 {
... ... @@ -99,11 +88,6 @@ if ($version ne $doc_version)
99 88 print "$whoami: qpdf-manual.xml version = $doc_version\n";
100 89 $version_error = 1;
101 90 }
102   -if ($version ne $spec_version)
103   -{
104   - print "$whoami: qpdf.spec version = $spec_version\n";
105   - $version_error = 1;
106   -}
107 91 if ($version_error)
108 92 {
109 93 die "$whoami: version numbers are not consistent\n";
... ...
qpdf.spec deleted
1   -Summary: Command-line tools and library for transforming PDF files
2   -Name: qpdf
3   -Version: 4.0.1
4   -Release: 1%{?dist}
5   -License: Artistic
6   -Group: System Environment/Libraries
7   -URL: http://qpdf.sourceforge.net/
8   -
9   -Source: %{name}-%{version}.tar.gz
10   -
11   -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
12   -BuildRequires: zlib-devel
13   -BuildRequires: pcre-devel
14   -
15   -%description
16   -QPDF is a program that does structural, content-preserving
17   -transformations on PDF files. It could have been called something
18   -like pdf-to-pdf. It also provides many useful capabilities to
19   -developers of PDF-producing software or for people who just want to
20   -look at the innards of a PDF file to learn more about how they work.
21   -
22   -QPDF offers many capabilities such as linearization (web
23   -optimization), encrypt, and decription of PDF files. Note that QPDF
24   -does not have the capability to create PDF files from scratch; it is
25   -only used to create PDF files with special characteristics starting
26   -from other PDF files or to inspect or extract information from
27   -existing PDF files.
28   -
29   -%package devel
30   -Summary: Development files for qpdf PDF manipulation library
31   -Group: Development/Libraries
32   -Requires: %{name} = %{version}-%{release} zlib-devel pcre-devel
33   -
34   -%description devel
35   -The qpdf-devel package contains header files and libraries necessary
36   -for developing programs using the qpdf library.
37   -
38   -%package static
39   -Summary: Static QPDF library
40   -Group: Development/Libraries
41   -Requires: %{name}-devel = %{version}-%{release}
42   -
43   -%description static
44   -The qpdf-static package contains the static qpdf library.
45   -
46   -%prep
47   -%setup -q
48   -
49   -%build
50   -%configure --disable-test-compare-images --docdir='${datarootdir}'/doc/%{name}-%{version}
51   -make %{?_smp_mflags}
52   -make check
53   -
54   -%install
55   -rm -rf $RPM_BUILD_ROOT
56   -%makeinstall
57   -# %doc below clobbers our docdir, so we have to copy it to a safe
58   -# place so we can install it using %doc. We should still set docdir
59   -# properly when configuring so that it gets substituted properly by
60   -# autoconf.
61   -cp -a $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} install-docs
62   -mkdir -p install-examples/examples
63   -cp -p examples/*.cc examples/*.c install-examples/examples
64   -# Red Hat doesn't ship .la files.
65   -rm -f $RPM_BUILD_ROOT%{_libdir}/libqpdf.la
66   -
67   -%post -p /sbin/ldconfig
68   -
69   -%postun -p /sbin/ldconfig
70   -
71   -%files
72   -%defattr(-,root,root)
73   -%doc README TODO Artistic-2.0 install-docs/*
74   -%{_bindir}/*
75   -%{_libdir}/libqpdf*.so.*
76   -%{_mandir}/man1/*
77   -
78   -%files devel
79   -%defattr(-,root,root)
80   -%doc install-examples/examples
81   -%{_includedir}/*
82   -%{_libdir}/libqpdf*.so
83   -%{_libdir}/pkgconfig
84   -
85   -%files static
86   -%defattr(-,root,root)
87   -%{_libdir}/libqpdf*.a
88   -
89   -%clean
90   -rm -rf $RPM_BUILD_ROOT
91   -
92   -%changelog
93   -* Mon Apr 28 2008 Jay Berkenbilt <ejb@ql.org> - 2.0-1
94   -- Initial packaging