Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37858311
en ru br
Репозитории ALT

Группа :: Система/Основа
Пакет: rpm-macros-fedora-compat

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064120661414170014514gustar00rootroot0000000000000052 comment=2750a68d6940333374cfa4f7268432c184128786
rpm-macros-fedora-compat-0.08/000075500000000000000000000000001206614141700162405ustar00rootroot00000000000000rpm-macros-fedora-compat-0.08/.gear/000075500000000000000000000000001206614141700172345ustar00rootroot00000000000000rpm-macros-fedora-compat-0.08/.gear/rules000064400000000000000000000000251206614141700203060ustar00rootroot00000000000000tar: .
copy: *.patch
rpm-macros-fedora-compat-0.08/fedora-compat000064400000000000000000000004631206614141700207070ustar00rootroot00000000000000%__id_u id -u
%_datarootdir %_datadir

%ocaml_arches %ix86 x86_64
%mono_arches %ix86 x86_64
%ghc_arches %ix86 x86_64
%GNAT_arches %{ix86} x86_64 ia64 ppc ppc64 alpha

%__python3 python3

%sugaractivitydir %_datadir/sugar/activities/
%sugarlibdir %{_libdir}/sugar/activities/

%_cups_serverbin /usr/lib/cups
rpm-macros-fedora-compat-0.08/macros.cmake000064400000000000000000000014271206614141700205320ustar00rootroot00000000000000#
# Macros for cmake
#
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
%_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
%_cmake_version %{get_version cmake}

%fedora_cmake \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
cmake \\\
-DCMAKE_VERBOSE_MAKEFILE=ON \\\
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
%if "%{?_lib}" == "lib64" \
%{?_cmake_lib_suffix64} \\\
%endif \
-DBUILD_SHARED_LIBS:BOOL=ON
rpm-macros-fedora-compat-0.08/macros.kde4000064400000000000000000000037161206614141700203040ustar00rootroot00000000000000%_kde4_sysconfdir %_K4sysconfdir
%_kde4_libdir %_K4libdir
%_kde4_libexecdir %_K4exec
%_kde4_datadir %_datadir
%_kde4_sharedir %_K4datadir
%_kde4_configdir %_K4conf
%_kde4_appsdir %_K4apps
%_kde4_docdir /usr/share/doc
%_kde4_includedir %_K4includedir
#_kde4_buildtype release
%_kde4_buildtype %__kde4_buildtype
%_kde4_macros_api 2

# those are replaced in Convert Plugin
#_kde4_prefix %_K4prefix
#_kde4_iconsdir %_iconsdir
#_kde4_bindir %_kde4_prefix/bin
#_kde4_sbindir %_kde4_prefix/sbin

%_kde4_version %((kde4-config --kde-version 2>/dev/null || echo 4.3.98) | cut -d' ' -f1 )
#_kde4_version %((kde4-config --version 2>/dev/null || echo "KDE: 4.3.98") | grep '^KDE' | sed -e 's/KDE[^:]*:[ ]*//g' | cut -d' ' -f1)

# api = 2
# initial try, including only items that vary from defaults
#

%cmake_kde4 \
QTDIR="%{_qt4_prefix}" ; export QTDIR ; \
PATH="%{_qt4_bindir}:$PATH" ; export PATH ; \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
cmake \\\
-DBUILD_SHARED_LIBS:BOOL=ON \\\
-DCMAKE_SKIP_RPATH:BOOL=yes \\\
-DCMAKE_C_FLAGS:STRING='%optflags' \\\
-DCMAKE_CXX_FLAGS:STRING='%optflags' \\\
-DCMAKE_EXE_LINKER_FLAGS:STRING='-L%_libdir/kde4link -L%_K4link' \\\
-DCMAKE_MODULE_LINKER_FLAGS:STRING='-L%_libdir/kde4link -L%_K4link' \\\
-DCMAKE_SHARED_LINKER_FLAGS:STRING='-L%_libdir/kde4link -L%_K4link' \\\
-DCMAKE_LIBRARY_PATH:LIST='%_K4link;%_libdir/kde4link;%_libdir;/%_lib' \\\
-DCMAKE_BUILD_TYPE=%{_kde4_buildtype} \\\
-DCMAKE_INSTALL_PREFIX:PATH=%{_K4prefix} \\\
-DCMAKE_VERBOSE_MAKEFILE=ON \\\
-DDATA_INSTALL_DIR:PATH=%{_kde4_appsdir} \\\
-DINCLUDE_INSTALL_DIR:PATH=%{_kde4_includedir} \\\
-DLIB_INSTALL_DIR:PATH=%{_kde4_libdir} \\\
%if "%{?_lib}" == "lib64" \
%{?_cmake_lib_suffix64} \\\
%endif \
-DLIBEXEC_INSTALL_DIR:PATH=%{_kde4_libexecdir} \\\
-DSYSCONF_INSTALL_DIR:PATH=%{_kde4_sysconfdir}
rpm-macros-fedora-compat-0.08/macros.perl000064400000000000000000000010031206614141700204020ustar00rootroot00000000000000# https://gist.github.com/284409
# fixup (and create if needed) the shbang lines in tests, so they work and
# rpmlint doesn't (correctly) have a fit
%fix_shbang_line() \
TMPHEAD=`mktemp`\
TMPBODY=`mktemp`\
for file in %* ; do \
head -1 $file > $TMPHEAD\
tail -n +2 $file > $TMPBODY\
%{__perl} -pi -e '$f = /^#!/ ? "" : "#!%{__perl}$/"; $_="$f$_"' $TMPHEAD\
cat $TMPHEAD $TMPBODY > $file\
done\
%{__perl} -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(qw{%*})"\
%{__rm} $TMPHEAD $TMPBODY\
%{nil}
rpm-macros-fedora-compat-0.08/macros.qt4000064400000000000000000000007021206614141700201550ustar00rootroot00000000000000%_qt4 qt
%_qt4_prefix %{_libdir}/qt4
%_qt4_bindir %{_qt4_prefix}/bin
%_qt4_datadir %{_qt4_prefix}
%_qt4_demosdir %{_qt4_prefix}/demos
%_qt4_docdir %{_docdir}/qt4
%_qt4_examples %{_qt4_prefix}/examples
%_qt4_headerdir %{_includedir}
%_qt4_importdir %{_qt4_prefix}/imports
%_qt4_libdir %{_libdir}
%_qt4_plugindir %{_qt4_prefix}/plugins
%_qt4_qmake %{_qt4_bindir}/qmake
%_qt4_sysconfdir %{_sysconfdir}
%_qt4_translationdir %{_datadir}/qt4/translations
rpm-macros-fedora-compat-0.08/macros.systemd000064400000000000000000000032301206614141700211340ustar00rootroot00000000000000# -*- Mode: makefile; indent-tabs-mode: t -*- */
#
# This file is part of systemd.
#
# Copyright 2012 Lennart Poettering
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# systemd is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with systemd; If not, see <http://www.gnu.org/licenses/>.

# RPM macros for packages installing systemd unit files

%_unitdir /usr/lib/systemd/system

%systemd_requires \
Requires(post): systemd \
Requires(preun): systemd \
Requires(postun): systemd \
%{nil}

%systemd_post() \
if [ $1 -eq 1 ] ; then \
# Initial installation \
/usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}

%systemd_preun() \
if [ $1 -eq 0 ] ; then \
# Package removal, not upgrade \
/usr/bin/systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \
/usr/bin/systemctl stop %{?*} > /dev/null 2>&1 || : \
fi \
%{nil}

%systemd_postun() \
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
%{nil}

%systemd_postun_with_restart() \
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
if [ $1 -ge 1 ] ; then \
# Package upgrade, not uninstall \
/usr/bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}
rpm-macros-fedora-compat-0.08/macros.systemd-alt-unitdir.patch000064400000000000000000000026711206614141700244740ustar00rootroot00000000000000diff --git a/macros.systemd b/macros.systemd
index 331c080..4ad6cb8 100644
--- a/macros.systemd
+++ b/macros.systemd
@@ -19,7 +19,7 @@

# RPM macros for packages installing systemd unit files

-%_unitdir /usr/lib/systemd/system
+#%_unitdir /usr/lib/systemd/system

%systemd_requires \
Requires(post): systemd \
@@ -30,26 +30,26 @@ Requires(postun): systemd \
%systemd_post() \
if [ $1 -eq 1 ] ; then \
# Initial installation \
- /usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \
+ /bin/systemctl preset %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}

%systemd_preun() \
if [ $1 -eq 0 ] ; then \
# Package removal, not upgrade \
- /usr/bin/systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \
- /usr/bin/systemctl stop %{?*} > /dev/null 2>&1 || : \
+ /bin/systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \
+ /bin/systemctl stop %{?*} > /dev/null 2>&1 || : \
fi \
%{nil}

%systemd_postun() \
-/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
+/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
%{nil}

%systemd_postun_with_restart() \
-/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
+/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
if [ $1 -ge 1 ] ; then \
# Package upgrade, not uninstall \
- /usr/bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \
+ /bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}
rpm-macros-fedora-compat-0.08/rpm-macros-fedora-compat.spec000064400000000000000000000037021206614141700237150ustar00rootroot00000000000000%define module fedora-compat
Name: rpm-macros-%module
Summary: Fedora compatibility set of macro
Version: 0.08
Release: alt5
License: GPL
Group: System/Base
BuildArch: noarch
Packager: Igor Vlasenko <viy@altlinux.ru>

Source: %name-%version.tar
Patch: macros.systemd-alt-unitdir.patch
Requires: rpm-macros-kde-common-devel

%description
%summary

%prep
%setup
%patch -p1
%install
install -D -m644 %module -p %buildroot%_rpmmacrosdir/%module-base
for ext in cmake kde4 qt4 perl systemd; do
install -D -m644 macros.$ext -p %buildroot%_rpmmacrosdir/%module-$ext
done

%files
%_rpmmacrosdir/*

%changelog
* Mon Dec 24 2012 Igor Vlasenko <viy@altlinux.ru> 0.08-alt5
- added GNAT_arches

* Thu Dec 20 2012 Igor Vlasenko <viy@altlinux.ru> 0.08-alt4
- added _cups_serverbin

* Wed Oct 31 2012 Igor Vlasenko <viy@altlinux.ru> 0.08-alt3
- fc sugar macros fix

* Tue Oct 30 2012 Igor Vlasenko <viy@altlinux.ru> 0.08-alt2
- added sugar libdir

* Wed Oct 24 2012 Igor Vlasenko <viy@altlinux.ru> 0.08-alt1
- added sugar activity dir

* Tue Aug 28 2012 Igor Vlasenko <viy@altlinux.ru> 0.07-alt2
- fixes in systemd macros

* Tue Aug 28 2012 Igor Vlasenko <viy@altlinux.ru> 0.07-alt1
- added __python3

* Mon Aug 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.06-alt1
- added fc systemd compat macros

* Wed Jun 20 2012 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1
- added fc compatible kde4 macros

* Fri Jun 08 2012 Igor Vlasenko <viy@altlinux.ru> 0.04-alt4
- dropped unitdir (in main rpm now)

* Fri Jun 08 2012 Igor Vlasenko <viy@altlinux.ru> 0.04-alt3
- added _datarootdir

* Wed May 30 2012 Igor Vlasenko <viy@altlinux.ru> 0.04-alt2
- added __id_u

* Wed May 30 2012 Igor Vlasenko <viy@altlinux.ru> 0.04-alt1
- added perl compat macros

* Mon May 21 2012 Igor Vlasenko <viy@altlinux.ru> 0.03-alt1
- more fc macros

* Sat Dec 17 2011 Igor Vlasenko <viy@altlinux.ru> 0.02-alt1
- added qt4 compat macros

* Thu Jul 14 2011 Igor Vlasenko <viy@altlinux.ru> 0.01-alt1
- initial build for ALT Linux Sisyphus
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin