]> git.pld-linux.org Git - packages/youtube-dl.git/commitdiff
add global config to package; fix egg-info packaging
authorElan Ruusamäe <glen@delfi.ee>
Wed, 22 Apr 2015 10:40:24 +0000 (13:40 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 22 Apr 2015 10:40:24 +0000 (13:40 +0300)
youtube-dl.conf [new file with mode: 0644]
youtube-dl.spec

diff --git a/youtube-dl.conf b/youtube-dl.conf
new file mode 100644 (file)
index 0000000..22ae8f7
--- /dev/null
@@ -0,0 +1,2 @@
+# default system wide configuration
+# https://github.com/rg3/youtube-dl#configuration
index 4df9e683c80e55ea39a5c1a80fa7adb3df5dfa81..98a302c268ec550677fcbcb8a86c8d87c4ee3248 100644 (file)
@@ -2,7 +2,6 @@
 %define        ver     20150228
 # full version number as seen on youtube-dl website
 %define        verlong 2015.02.28
-#
 Summary:       Video extraction utility for YouTube
 Summary(pl.UTF-8):     Narzędzie do wydobywania filmów z YouTube
 Name:          youtube-dl
@@ -13,6 +12,7 @@ License:      Public Domain
 Group:         Applications/System
 Source0:       http://youtube-dl.org/downloads/%{verlong}/%{name}-%{verlong}.tar.gz
 # Source0-md5: c7fcf8c9e7d3bec7ebc9ddf96a7d925b
+Source1:       %{name}.conf
 URL:           http://youtube-dl.org/
 BuildRequires: python-distribute
 BuildRequires: rpm-pythonprov
@@ -75,6 +75,9 @@ install -d $RPM_BUILD_ROOT%{_bindir}
 
 %py_postclean
 
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
+
 install -d $RPM_BUILD_ROOT{%{bash_compdir},%{fish_compdir}}
 %{__mv} $RPM_BUILD_ROOT%{_prefix}/etc/bash_completion.d/youtube-dl.bash-completion \
        $RPM_BUILD_ROOT%{bash_compdir}/%{name}
@@ -88,10 +91,11 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md LICENSE
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/youtube-dl.conf
 %attr(755,root,root) %{_bindir}/youtube-dl
 %{_mandir}/man1/youtube-dl.1*
 %{py_sitescriptdir}/youtube_dl
-%{py_sitescriptdir}/youtube_dl-%{verlong}-py*.egg-info
+%{py_sitescriptdir}/youtube_dl-*-py*.egg-info
 
 %files -n bash-completion-%{name}
 %defattr(644,root,root,755)
This page took 0.328953 seconds and 4 git commands to generate.