commit 2c93d4d85a86840e40b18df7e1f31142c20de478 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:58:28 2019 +0800 Package init diff --git a/use-fuzzy.patch b/use-fuzzy.patch new file mode 100644 index 0000000..924d7c9 --- /dev/null +++ b/use-fuzzy.patch @@ -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-$@ diff --git a/xdg-user-dirs-0.17.tar.gz b/xdg-user-dirs-0.17.tar.gz new file mode 100644 index 0000000..1389c69 Binary files /dev/null and b/xdg-user-dirs-0.17.tar.gz differ diff --git a/xdg-user-dirs.spec b/xdg-user-dirs.spec new file mode 100644 index 0000000..33ec1e3 --- /dev/null +++ b/xdg-user-dirs.spec @@ -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 - 0.17-3 +- Package init