On 12/13/20 7:03 PM, Orion Poplawski wrote:
On 12/13/20 10:37 AM, Orion Poplawski wrote:
On 12/11/20 5:04 PM, Miro Hrončok wrote:
On 12/12/20 12:12 AM, Troy Dawson wrote:
We discussed this in the EPEL Steering Committee this week, and your
way has alot less "mess with the server and modules" work.
It would probably get us up to 75% of the missing packages.
If people who have been waiting for packages want to give this a try
and show what they did for others to follow, that would be great.
I'll probrubly do it for some of the packages I want. And see what
type of scripts, patches, and other things are needed.
Let me know if you have a devel package in mind and I can give it a try.
Can we just jump in and try this out? I'd like to get qpdf-devel available.
Here's what I have for a diff so far for qpdf-devel:
--- /export/home/orion/centos/qpdf/SPECS/qpdf.spec 2020-12-13
10:39:15.439288925 -0700
+++ qpdf-devel.spec 2020-12-13 10:52:37.567863216 -0700
@@ -1,5 +1,7 @@
+%global debug_package %{nil}
+
Summary: Command-line tools and library for transforming PDF files
-Name: qpdf
+Name: qpdf-devel
Version: 7.1.1
Release: 10%{?dist}
# MIT: e.g. libqpdf/sha2.c
@@ -72,7 +74,7 @@
QPDF Manual
%prep
-%setup -q
+%setup -q -n qpdf-%{version}
# fix 'complete manual location' note in man pages
%patch0 -p1 -b .doc
@@ -99,35 +101,17 @@
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/libqpdf.la
+rm -rf %{buildroot}/usr/{bin,share} %{buildroot}%{_libdir}/*.so.*
%check
make check
-%post libs -p /sbin/ldconfig
-
-%postun libs -p /sbin/ldconfig
-
%files
-%{_bindir}/fix-qdf
-%{_bindir}/qpdf
-%{_bindir}/zlib-flate
-%{_mandir}/man1/*
-
-%files libs
-%doc README.md TODO ChangeLog
-%license Artistic-2.0
-%{_libdir}/libqpdf*.so.*
-
-%files devel
%doc examples/*.cc examples/*.c
%{_includedir}/*
%{_libdir}/libqpdf*.so
%{_libdir}/pkgconfig/libqpdf.pc
-%files doc
-%{_pkgdocdir}
-
-
%changelog
Seem reasonable? I was able to install the resulting qpdf-devel fine.
Don't forget to move the following metadata to the main package:
Summary: Development files for QPDF library
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
Also, since you might want to bump the release independently in EPEL (e.g. if we
discover something was wrong in the way we have packaged this), I recommend doing:
%global rhelrelease 10
%global baserelease 1
Release: %{rhelrelease}.%{baserelease}%{?dist}
...
Requires: qpdf-libs%{?_isa} = %{version}-%{rhelrelease}%{?dist}
(Assuming qpdf has regular %{dist} and not some modularity artificial value.)
Note that I've named the EPEL part of the release "baserelease", so
rpmdev-bumpspec does the right thing.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/epel-devel@xxxxxxxxxxxxxxxxxxxxxxx