Package init
This commit is contained in:
commit
2c93d4d85a
22
use-fuzzy.patch
Normal file
22
use-fuzzy.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -up xdg-user-dirs-0.11/po/Makefile.in.in.use-fuzzy xdg-user-dirs-0.11/po/Makefile.in.in
|
||||||
|
--- xdg-user-dirs-0.11/po/Makefile.in.in.use-fuzzy 2008-10-24 04:17:03.000000000 -0400
|
||||||
|
+++ xdg-user-dirs-0.11/po/Makefile.in.in 2009-11-03 00:57:15.319114230 -0500
|
||||||
|
@@ -61,14 +61,14 @@ CATALOGS = @CATALOGS@
|
||||||
|
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
|
||||||
|
|
||||||
|
.po.mo:
|
||||||
|
- @echo "$(MSGFMT) -c -o $@ $<"; \
|
||||||
|
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
|
||||||
|
+ @echo "$(MSGFMT) -c -f -o $@ $<"; \
|
||||||
|
+ $(MSGFMT) -c -f -o t-$@ $< && mv t-$@ $@
|
||||||
|
|
||||||
|
.po.gmo:
|
||||||
|
@lang=`echo $* | sed -e 's,.*/,,'`; \
|
||||||
|
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
|
||||||
|
- echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
|
||||||
|
- cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
||||||
|
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c -f --statistics -o $${lang}.gmo $${lang}.po"; \
|
||||||
|
+ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c -f --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
||||||
|
|
||||||
|
.sin.sed:
|
||||||
|
sed -e '/^#/d' $< > t-$@
|
||||||
BIN
xdg-user-dirs-0.17.tar.gz
Normal file
BIN
xdg-user-dirs-0.17.tar.gz
Normal file
Binary file not shown.
52
xdg-user-dirs.spec
Normal file
52
xdg-user-dirs.spec
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
Name: xdg-user-dirs
|
||||||
|
Version: 0.17
|
||||||
|
Release: 3
|
||||||
|
Summary: A tool to help manage "well known" user directories
|
||||||
|
License: GPLv2+ and MIT
|
||||||
|
URL: http://freedesktop.org/wiki/Software/xdg-user-dirs
|
||||||
|
Source0: http://user-dirs.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
||||||
|
Patch0000: use-fuzzy.patch
|
||||||
|
BuildRequires: gcc gettext docbook-style-xsl libxslt
|
||||||
|
Requires: %{_sysconfdir}/xdg/autostart
|
||||||
|
|
||||||
|
%description
|
||||||
|
xdg-user-dirs is a tool to help manage "well known" user directories like the desktop
|
||||||
|
folder and the music folder. It also handles localization (i.e. translation) of the filenames.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: help document for the xdg-user-dirs package
|
||||||
|
Buildarch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
help document for th xdg-user-dirs package.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
cd po
|
||||||
|
touch *.po
|
||||||
|
make update-gmo
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%find_lang xdg-user-dirs
|
||||||
|
|
||||||
|
%files -f xdg-user-dirs.lang
|
||||||
|
%license COPYING
|
||||||
|
%doc NEWS AUTHORS README
|
||||||
|
%{_bindir}/*
|
||||||
|
%config(noreplace) %{_sysconfdir}/xdg/user-dirs.*
|
||||||
|
%{_sysconfdir}/xdg/autostart/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 25 2019 Lijin Yang <yanglijin@huawei.com> - 0.17-3
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user