introduce sclbuild utility
- fix exporting of env. variables when mutiple collections are enabled at the same time - better bash completion - fix changelog
This commit is contained in:
parent
d80c4a43a8
commit
e9278bd5c1
@ -261,6 +261,7 @@ cat >> %{buildroot}/iso_3166.sed << EOF
|
|||||||
H
|
H
|
||||||
EOF
|
EOF
|
||||||
mkdir -p %{buildroot}%{_scl_root}
|
mkdir -p %{buildroot}%{_scl_root}
|
||||||
|
rm -f $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
cd %{buildroot}%{_scl_root}
|
cd %{buildroot}%{_scl_root}
|
||||||
mkdir -p boot dev \\
|
mkdir -p boot dev \\
|
||||||
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \\
|
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \\
|
||||||
@ -282,8 +283,8 @@ grep -v "^$" %{buildroot}/iso_639.tab | grep -v "^#" | while read a b c d ; do
|
|||||||
if [ "$locale" = "XX" ]; then
|
if [ "$locale" = "XX" ]; then
|
||||||
locale=$b
|
locale=$b
|
||||||
fi
|
fi
|
||||||
echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
|
echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${locale}" >> $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${locale}" >>$RPM_BUILD_DIR/filelist
|
echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${locale}" >> $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
done
|
done
|
||||||
cat %{buildroot}/lang-exceptions | grep -v "^#" | grep -v "^$" | while read loc ; do
|
cat %{buildroot}/lang-exceptions | grep -v "^#" | grep -v "^$" | while read loc ; do
|
||||||
locale=$loc
|
locale=$loc
|
||||||
@ -302,22 +303,22 @@ cat %{buildroot}/lang-exceptions | grep -v "^#" | grep -v "^$" | while read loc
|
|||||||
egrep -q "[[:space:]]${locale%%_*}[[:space:]]" \\
|
egrep -q "[[:space:]]${locale%%_*}[[:space:]]" \\
|
||||||
%{buildroot}/iso_639.tab || continue
|
%{buildroot}/iso_639.tab || continue
|
||||||
fi
|
fi
|
||||||
echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist
|
echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${loc}" >> $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${loc}" >> $RPM_BUILD_DIR/filelist
|
echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${loc}" >> $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
done
|
done
|
||||||
rm -f %{buildroot}/iso_639.tab
|
rm -f %{buildroot}/iso_639.tab
|
||||||
rm -f %{buildroot}/iso_639.sed
|
rm -f %{buildroot}/iso_639.sed
|
||||||
rm -f %{buildroot}/iso_3166.tab
|
rm -f %{buildroot}/iso_3166.tab
|
||||||
rm -f %{buildroot}/iso_3166.sed
|
rm -f %{buildroot}/iso_3166.sed
|
||||||
rm -f %{buildroot}/lang-exceptions
|
rm -f %{buildroot}/lang-exceptions
|
||||||
cat $RPM_BUILD_DIR/filelist | grep "locale" | while read a b ; do
|
cat $RPM_BUILD_DIR/%{buildsubdir}/filesystem | grep "locale" | while read a b ; do
|
||||||
mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
|
mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
|
||||||
done
|
done
|
||||||
cat $RPM_BUILD_DIR/filelist | grep "/share/man" | while read a b c d; do
|
cat $RPM_BUILD_DIR/%{buildsubdir}/filesystem | grep "/share/man" | while read a b c d; do
|
||||||
mkdir -p -m 755 %{buildroot}/$d/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
|
mkdir -p -m 755 %{buildroot}/$d/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
|
||||||
done
|
done
|
||||||
for i in man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}; do
|
for i in man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}; do
|
||||||
echo "%{_scl_root}/usr/share/man/$i" >>$RPM_BUILD_DIR/filelist
|
echo "%{_scl_root}/usr/share/man/$i" >> $RPM_BUILD_DIR/%{buildsubdir}/filesystem
|
||||||
done
|
done
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Summary: Utilities for alternative packaging
|
Summary: Utilities for alternative packaging
|
||||||
Name: scl-utils
|
Name: scl-utils
|
||||||
Version: 20120927
|
Version: 20121110
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
@ -31,6 +31,9 @@ make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
|||||||
rm -rf %buildroot
|
rm -rf %buildroot
|
||||||
mkdir -p %buildroot%{_sysconfdir}/rpm
|
mkdir -p %buildroot%{_sysconfdir}/rpm
|
||||||
mkdir -p %buildroot%{_sysconfdir}/scl/prefixes
|
mkdir -p %buildroot%{_sysconfdir}/scl/prefixes
|
||||||
|
pushd %buildroot%{_sysconfdir}/scl
|
||||||
|
ln -s prefixes conf
|
||||||
|
popd
|
||||||
mkdir -p %buildroot/opt/rh
|
mkdir -p %buildroot/opt/rh
|
||||||
install -d -m 755 %buildroot%{_mandir}/man1
|
install -d -m 755 %buildroot%{_mandir}/man1
|
||||||
make install DESTDIR=%buildroot
|
make install DESTDIR=%buildroot
|
||||||
@ -42,6 +45,7 @@ rm -rf %buildroot
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir /opt/rh
|
%dir /opt/rh
|
||||||
|
%dir %{_sysconfdir}/scl/conf
|
||||||
%dir %{_sysconfdir}/scl/prefixes
|
%dir %{_sysconfdir}/scl/prefixes
|
||||||
%{_bindir}/scl
|
%{_bindir}/scl
|
||||||
%{_bindir}/scl_enabled
|
%{_bindir}/scl_enabled
|
||||||
@ -50,6 +54,7 @@ rm -rf %buildroot
|
|||||||
|
|
||||||
%files build
|
%files build
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/sclbuild
|
||||||
%{_sysconfdir}/rpm/macros.scl
|
%{_sysconfdir}/rpm/macros.scl
|
||||||
%{_rpmconfigdir}/scldeps.sh
|
%{_rpmconfigdir}/scldeps.sh
|
||||||
%{_rpmconfigdir}/fileattrs/scl.attr
|
%{_rpmconfigdir}/fileattrs/scl.attr
|
||||||
@ -57,6 +62,13 @@ rm -rf %buildroot
|
|||||||
%{_rpmconfigdir}/brp-scl-python-bytecompile
|
%{_rpmconfigdir}/brp-scl-python-bytecompile
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 19 2012 Jindrich Novy <jnovy@redhat.com> 20121105-1
|
||||||
|
- introduce sclbuild utility
|
||||||
|
- fix exporting of env. variables when mutiple collections are
|
||||||
|
enabled at the same time
|
||||||
|
- better bash completion
|
||||||
|
- fix changelog
|
||||||
|
|
||||||
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
|
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
|
||||||
- update to 20120927
|
- update to 20120927
|
||||||
- better BUILDROOT processing
|
- better BUILDROOT processing
|
||||||
@ -72,7 +84,7 @@ rm -rf %buildroot
|
|||||||
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
|
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
|
||||||
- update to 20120802
|
- update to 20120802
|
||||||
|
|
||||||
* Thu Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
|
* Tue Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
|
||||||
- add functionality that allows to list all packages in a collection
|
- add functionality that allows to list all packages in a collection
|
||||||
- add dependency generators
|
- add dependency generators
|
||||||
|
|
||||||
@ -91,7 +103,7 @@ rm -rf %buildroot
|
|||||||
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
|
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
|
||||||
- avoid doublefree corruption when reading commands from stdin
|
- avoid doublefree corruption when reading commands from stdin
|
||||||
|
|
||||||
* Mon Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
|
* Sun Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
|
||||||
- keep filesystem macros out of the main sources as
|
- keep filesystem macros out of the main sources as
|
||||||
it is distro-dependent
|
it is distro-dependent
|
||||||
|
|
||||||
@ -132,7 +144,7 @@ rm -rf %buildroot
|
|||||||
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
|
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
|
||||||
- initial packaging for upstream
|
- initial packaging for upstream
|
||||||
|
|
||||||
* Thu Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
|
* Wed Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
|
||||||
- define %%_defaultdocdir to properly relocate docs into
|
- define %%_defaultdocdir to properly relocate docs into
|
||||||
a stack
|
a stack
|
||||||
- document a way how to pass command to stack via stdin
|
- document a way how to pass command to stack via stdin
|
||||||
|
Loading…
Reference in New Issue
Block a user