Simplify conditional macros
The old webkitgtk plugin is obsolete, so remove mention of it entirely. Simplify all the other conditionals down to a single one for bootstrapping. Enable the tests in the check phase. https://fedoraproject.org/wiki/Packaging:Guidelines#Bootstrapping
This commit is contained in:
parent
5c277ecddb
commit
df96441e4e
125
libproxy.spec
125
libproxy.spec
@ -1,15 +1,6 @@
|
|||||||
|
# When we are bootstrapping, we drop some dependencies.
|
||||||
#0 to bootstrap libproxy circle dependencies - 1 normal case
|
# Set this to 0 after bootstrapping.
|
||||||
%if 1
|
%{!?_with_bootstrap: %global bootstrap 0}
|
||||||
%global _with_webkitgtk3 1
|
|
||||||
%global _with_gnome3 1
|
|
||||||
%global _with_mozjs 1
|
|
||||||
%global _with_gnome 1
|
|
||||||
%global _with_kde 1
|
|
||||||
%global _with_networkmanager 1
|
|
||||||
%global _with_python 1
|
|
||||||
%global _with_pacrunner 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: libproxy
|
Name: libproxy
|
||||||
Version: 0.4.12
|
Version: 0.4.12
|
||||||
@ -27,40 +18,25 @@ BuildRequires: python-devel
|
|||||||
BuildRequires: libmodman-devel >= 2.0.1
|
BuildRequires: libmodman-devel >= 2.0.1
|
||||||
BuildRequires: cmake >= 2.6.0
|
BuildRequires: cmake >= 2.6.0
|
||||||
|
|
||||||
# gnome
|
%if ! 0%{?bootstrap}
|
||||||
%{?_with_gnome:
|
|
||||||
BuildRequires: GConf2-devel
|
|
||||||
BuildRequires: libXmu-devel
|
|
||||||
}
|
|
||||||
# mozjs
|
# mozjs
|
||||||
%{?_with_mozjs:BuildRequires: pkgconfig(mozjs185)}
|
BuildRequires: pkgconfig(mozjs185)
|
||||||
# NetworkManager
|
# NetworkManager
|
||||||
%{?_with_networkmanager:
|
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
}
|
|
||||||
# webkit (gtk)
|
|
||||||
%{?_with_webkit:BuildRequires: WebKit-gtk-devel}
|
|
||||||
# webkit (gtk3)
|
# webkit (gtk3)
|
||||||
%{?_with_webkitgtk3:BuildRequires: webkitgtk3-devel}
|
BuildRequires: webkitgtk3-devel
|
||||||
# kde
|
# kde
|
||||||
%{?_with_kde:BuildRequires: /usr/bin/kreadconfig5}
|
BuildRequires: /usr/bin/kreadconfig5
|
||||||
# pacrunner
|
# pacrunner
|
||||||
%{?_with_pacrunner:BuildRequires: dbus-devel}
|
BuildRequires: dbus-devel
|
||||||
|
%else
|
||||||
#Obsoletes of disabled subpackages
|
# Obsoletes of disabled subpackages.
|
||||||
%{!?_with_mozjs:
|
|
||||||
Provides: %{name}-mozjs = %{version}-%{release}
|
Provides: %{name}-mozjs = %{version}-%{release}
|
||||||
Obsoletes: %{name}-mozjs < %{version}-%{release}
|
Obsoletes: %{name}-mozjs < %{version}-%{release}
|
||||||
}
|
|
||||||
%{!?_with_webkit:
|
|
||||||
Provides: %{name}-webkit = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-webkit < %{version}-%{release}
|
|
||||||
}
|
|
||||||
%{!?_with_webkitgtk3:
|
|
||||||
Provides: %{name}-webkitgtk3 = %{version}-%{release}
|
Provides: %{name}-webkitgtk3 = %{version}-%{release}
|
||||||
Obsoletes: %{name}-webkitgtk3 < %{version}-%{release}
|
Obsoletes: %{name}-webkitgtk3 < %{version}-%{release}
|
||||||
}
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -83,7 +59,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description bin
|
%description bin
|
||||||
The %{name}-bin package contains the proxy binary for %{name}
|
The %{name}-bin package contains the proxy binary for %{name}
|
||||||
|
|
||||||
%{?_with_python:
|
%if ! 0%{?bootstrap}
|
||||||
%package python
|
%package python
|
||||||
Summary: Binding for %{name} and python
|
Summary: Binding for %{name} and python
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -92,9 +68,7 @@ BuildArch: noarch
|
|||||||
|
|
||||||
%description python
|
%description python
|
||||||
The %{name}-python package contains the python binding for %{name}
|
The %{name}-python package contains the python binding for %{name}
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_gnome:
|
|
||||||
%package gnome
|
%package gnome
|
||||||
Summary: Plugin for %{name} and gnome
|
Summary: Plugin for %{name} and gnome
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -102,9 +76,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
|
|
||||||
%description gnome
|
%description gnome
|
||||||
The %{name}-gnome package contains the %{name} plugin for gnome.
|
The %{name}-gnome package contains the %{name} plugin for gnome.
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_kde:
|
|
||||||
%package kde
|
%package kde
|
||||||
Summary: Plugin for %{name} and kde
|
Summary: Plugin for %{name} and kde
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -113,9 +85,7 @@ Requires: /usr/bin/kreadconfig5
|
|||||||
|
|
||||||
%description kde
|
%description kde
|
||||||
The %{name}-kde package contains the %{name} plugin for kde.
|
The %{name}-kde package contains the %{name} plugin for kde.
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_mozjs:
|
|
||||||
%package mozjs
|
%package mozjs
|
||||||
Summary: Plugin for %{name} and mozjs
|
Summary: Plugin for %{name} and mozjs
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -124,9 +94,7 @@ Provides: %{name}-pac = %{version}-%{release}
|
|||||||
|
|
||||||
%description mozjs
|
%description mozjs
|
||||||
The %{name}-mozjs package contains the %{name} plugin for mozjs.
|
The %{name}-mozjs package contains the %{name} plugin for mozjs.
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_networkmanager:
|
|
||||||
%package networkmanager
|
%package networkmanager
|
||||||
Summary: Plugin for %{name} and networkmanager
|
Summary: Plugin for %{name} and networkmanager
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -135,21 +103,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description networkmanager
|
%description networkmanager
|
||||||
The %{name}-networkmanager package contains the %{name} plugin
|
The %{name}-networkmanager package contains the %{name} plugin
|
||||||
for networkmanager.
|
for networkmanager.
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_webkit:
|
|
||||||
%package webkit
|
|
||||||
Summary: Plugin for %{name} and webkit
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Provides: %{name}-pac = %{version}-%{release}
|
|
||||||
|
|
||||||
%description webkit
|
|
||||||
The %{name}-webkit package contains the %{name} plugin for
|
|
||||||
webkit.
|
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_webkitgtk3:
|
|
||||||
%package webkitgtk3
|
%package webkitgtk3
|
||||||
Summary: Plugin for %{name} and webkitgtk3
|
Summary: Plugin for %{name} and webkitgtk3
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -157,11 +111,9 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
Provides: %{name}-pac = %{version}-%{release}
|
Provides: %{name}-pac = %{version}-%{release}
|
||||||
|
|
||||||
%description webkitgtk3
|
%description webkitgtk3
|
||||||
The %{name}-webkit package contains the %{name} plugin for
|
The %{name}-webkitgtk3 package contains the %{name} plugin for
|
||||||
webkitgtk3.
|
webkitgtk3.
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_pacrunner:
|
|
||||||
%package pacrunner
|
%package pacrunner
|
||||||
Summary: Plugin for %{name} and PacRunner
|
Summary: Plugin for %{name} and PacRunner
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -171,7 +123,7 @@ Provides: %{name}-pac = %{version}-%{release}
|
|||||||
%description pacrunner
|
%description pacrunner
|
||||||
The %{name}-pacrunner package contains the %{name} plugin for
|
The %{name}-pacrunner package contains the %{name} plugin for
|
||||||
PacRunner.
|
PacRunner.
|
||||||
}
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -192,9 +144,11 @@ developing applications that use %{name}.
|
|||||||
%{cmake} \
|
%{cmake} \
|
||||||
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
|
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
|
||||||
-DWITH_PERL=OFF \
|
-DWITH_PERL=OFF \
|
||||||
%{!?_with_gnome3:-DWITH_GNOME3=OFF}\
|
%if ! 0%{?bootstrap}
|
||||||
%{?_with_webkitgtk3:-DWITH_WEBKIT3=ON}\
|
-DWITH_GNOME3=ON \
|
||||||
%{?_with_mozjs:-DWITH_MOZJS=ON}\
|
-DWITH_WEBKIT3=ON \
|
||||||
|
-DWITH_MOZJS=ON \
|
||||||
|
%endif
|
||||||
.
|
.
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
make VERBOSE=1 %{?_smp_mflags}
|
||||||
|
|
||||||
@ -205,10 +159,8 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
#In case all modules are disabled
|
#In case all modules are disabled
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/modules
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/modules
|
||||||
|
|
||||||
%{?_with_test:
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
}
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -216,7 +168,6 @@ make test
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc AUTHORS COPYING README
|
%doc AUTHORS COPYING README
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
@ -224,64 +175,33 @@ make test
|
|||||||
%dir %{_libdir}/%{name}/%{version}/modules
|
%dir %{_libdir}/%{name}/%{version}/modules
|
||||||
|
|
||||||
%files bin
|
%files bin
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_bindir}/proxy
|
%{_bindir}/proxy
|
||||||
|
|
||||||
%{?_with_python:
|
%if ! 0%{?bootstrap}
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_gnome:
|
|
||||||
%files gnome
|
%files gnome
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{!?_with_gnome3:
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/config_gnome.so
|
|
||||||
%{_libexecdir}/pxgconf}
|
|
||||||
%{?_with_gnome3:
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
|
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
|
||||||
%{_libexecdir}/pxgsettings}
|
%{_libexecdir}/pxgsettings
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_kde:
|
|
||||||
%files kde
|
%files kde
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/config_kde.so
|
%{_libdir}/%{name}/%{version}/modules/config_kde.so
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_mozjs:
|
|
||||||
%files mozjs
|
%files mozjs
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_networkmanager:
|
|
||||||
%files networkmanager
|
%files networkmanager
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
|
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_webkit:
|
|
||||||
%files webkit
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_webkitgtk3:
|
|
||||||
%files webkitgtk3
|
%files webkitgtk3
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
||||||
}
|
|
||||||
|
|
||||||
%{?_with_pacrunner:
|
|
||||||
%files pacrunner
|
%files pacrunner
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/%{name}/%{version}/modules/config_pacrunner.so
|
%{_libdir}/%{name}/%{version}/modules/config_pacrunner.so
|
||||||
}
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_includedir}/proxy.h
|
%{_includedir}/proxy.h
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/libproxy-1.0.pc
|
%{_libdir}/pkgconfig/libproxy-1.0.pc
|
||||||
@ -291,6 +211,7 @@ make test
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Feb 29 2016 David King <amigadave@amigadave.com> - 0.4.12-1
|
* Mon Feb 29 2016 David King <amigadave@amigadave.com> - 0.4.12-1
|
||||||
- Update to 0.4.12
|
- Update to 0.4.12
|
||||||
|
- Simplify conditional macros
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-13
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user