Blame SPECS/libijs.spec

c481d8
# === GLOBAL MACROS ===========================================================
c481d8
c481d8
# According to Fedora Package Guidelines, it is advised that packages that can
c481d8
# process untrusted input are build with position-independent code (PIC).
c481d8
#
c481d8
# Koji should override the compilation flags and add the -fPIC or -fPIE flags
c481d8
# by default. This is here just in case this wouldn't happen for some reason.
c481d8
# For more info: https://fedoraproject.org/wiki/Packaging:Guidelines#PIE
c481d8
%global _hardened_build 1
c481d8
c481d8
# =============================================================================
c481d8
c481d8
Name:             libijs
c481d8
Summary:          IJS Raster Image Transport Protocol Library
c481d8
Version:          0.35
c481d8
Release:          5%{?dist}
c481d8
c481d8
License:          AGPLv3+
c481d8
c481d8
URL:              https://ghostscript.com/
c481d8
Source:           https://github.com/ArtifexSoftware/ijs/archive/%{version}.tar.gz#/ijs-%{version}.tar.gz
c481d8
c481d8
BuildRequires:    gcc
c481d8
BuildRequires:    git
c481d8
BuildRequires:    autoconf
c481d8
BuildRequires:    automake
c481d8
BuildRequires:    libtool
c481d8
c481d8
# =============================================================================
c481d8
c481d8
# NOTE: 'autosetup' macro (below) uses 'git' for applying the patches:
c481d8
#       ->> All the patches should be provided in 'git format-patch' format.
c481d8
#       ->> Auxiliary repository will be created during 'fedpkg prep', you
c481d8
#           can see all the applied patches there via 'git log'.
c481d8
c481d8
# Upstream patches -- official upstream patches released by upstream since the
c481d8
# ----------------    last rebase that are necessary for any reason:
c481d8
#Patch000: example000.patch
c481d8
c481d8
c481d8
# Downstream patches -- these should be always included when doing rebase:
c481d8
# ------------------
c481d8
#Patch100: example100.patch
c481d8
c481d8
c481d8
# Downstream patches for RHEL -- patches that we keep only in RHEL for various
c481d8
# ---------------------------    reasons, but are not enabled in Fedora:
c481d8
%if %{defined rhel} || %{defined centos}
c481d8
#Patch200: example200.patch
c481d8
%endif
c481d8
c481d8
c481d8
# Patches to be removed -- deprecated functionality which shall be removed at
c481d8
# ---------------------    some point in the future:
c481d8
c481d8
c481d8
%description
c481d8
The IJS (InkJet Server) Raster Image Transport Protocol is a library, which
c481d8
is no longer actively developed, and often other alternatives are used instead.
c481d8
c481d8
This library, however, still seem to be useful for Ghostscript application
c481d8
to be able to connect to the HP IJS server to print on an HP printer.
c481d8
c481d8
# === SUBPACKAGES =============================================================
c481d8
c481d8
%package devel
c481d8
Summary:          Header & pkgconfig files for %{name}
c481d8
Requires:         %{name}%{?_isa} = %{version}-%{release}
c481d8
BuildRequires:    pkgconfig
c481d8
c481d8
%description devel
c481d8
This subpackage provides /usr/include/ijs/ijs.h header file, as well as ijs.pc
c481d8
pkgconfig file. Both of these files are useful for development purposes only.
c481d8
c481d8
# ---------------
c481d8
c481d8
%package doc
c481d8
Summary:          Documentation for %{name}
c481d8
Requires:         %{name} = %{version}-%{release}
c481d8
BuildArch:        noarch
c481d8
c481d8
%description doc
c481d8
This subpackage contains PDF documentation with IJS protocol specification,
c481d8
which is useful for development purposes only.
c481d8
c481d8
# === BUILD INSTRUCTIONS ======================================================
c481d8
c481d8
# We have to override the folder name, because upstream's archive cotains the
c481d8
# name 'ijs' (not 'libijs')...
c481d8
%prep
c481d8
%autosetup -n ijs-%{version} -S git
c481d8
c481d8
# ---------------
c481d8
c481d8
%build
c481d8
autoreconf -ifv
c481d8
%configure --disable-static --enable-shared
c481d8
%make_build
c481d8
c481d8
# ---------------
c481d8
c481d8
%install
c481d8
%make_install
c481d8
c481d8
# Remove files that we don't want to ship:
c481d8
rm -rf %{buildroot}%{_bindir}
c481d8
rm -rf %{buildroot}%{_libdir}/*.la
c481d8
c481d8
# Install the ijs_spec.pdf to correct location:
c481d8
install -m 0755 -d %{buildroot}%{_docdir}/%{name}
c481d8
install -m 0644 -p ijs_spec.pdf %{buildroot}%{_docdir}/%{name}
c481d8
c481d8
# === PACKAGING INSTRUCTIONS ==================================================
c481d8
c481d8
%files
c481d8
%license COPYING
c481d8
%{_libdir}/libijs-%{version}.so
c481d8
c481d8
# ---------------
c481d8
c481d8
%files devel
c481d8
%dir %{_includedir}/ijs
c481d8
%{_includedir}/ijs/*.h
c481d8
%{_libdir}/libijs.so
c481d8
%{_libdir}/pkgconfig/*.pc
c481d8
c481d8
# ---------------
c481d8
%files doc
c481d8
%dir %{_docdir}/%{name}
c481d8
%doc %{_docdir}/%{name}/ijs_spec.pdf
c481d8
c481d8
# =============================================================================
c481d8
c481d8
%changelog
c481d8
* Tue Jul 31 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 0.35-5
c481d8
- FTBFS caused by new version of aclocal fixed (bug #1609997)
c481d8
c481d8
* Sat Mar 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.35-4
c481d8
- Remove unneeded ldconfig scriptlets
c481d8
c481d8
* Wed Feb 28 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 0.35-3
c481d8
- source updated to point at upstream's Github
c481d8
c481d8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-2.gitd26d2bb
c481d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c481d8
c481d8
* Wed Nov 22 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 0.35-1.gitd26d2bb
c481d8
- initial specfile