Mageia Bugzilla – Attachment 14575 Details for
Bug 32389
kup: another KDE/Plasma easy-to-use backup program NEW PKG REQUEST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
bup spec file
bup.spec (text/plain), 4.14 KB, created by
Aurelian R
on 2024-06-19 11:23:37 CEST
(
hide
)
Description:
bup spec file
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-06-19 11:23:37 CEST
Size:
4.14 KB
patch
obsolete
># Bup tests take some time to complete! >%bcond_with test ># pandoc not available for Mageia! >%bcond_with pandoc > >Name: bup >Version: 0.33.3 >Release: %mkrel 0.7 >Summary: Very efficient backup system based on git >License: LGPL-2.0-only >Group: Archiving/Backup >URL: https://bup.github.io/ >Source0: https://github.com/bup/bup/archive/refs/tags/%{name}-%{version}.tar.gz > >BuildRequires: git-core >= 1.5.6 >BuildRequires: pkgconfig(libacl) >BuildRequires: pkgconfig(python3) >BuildRequires: pkgconfig(readline) >BuildRequires: python3dist(fuse-python) >BuildRequires: python3dist(pylibacl) >BuildRequires: python3dist(pyxattr) >BuildRequires: python3dist(tornado) >BuildRequires: perl-Time-HiRes >%if %{without pandoc} >BuildRequires: python3dist(docutils) >BuildRequires: python3dist(recommonmark) >BuildRequires: golang-github-cpuguy83-md2man >%else >BuildRequires: pandoc >%endif >%if %{with test} >BuildRequires: duplicity >BuildRequires: parchive2 >BuildRequires: rdiff-backup >BuildRequires: rsync >BuildRequires: python3dist(pylint) >BuildRequires: python3dist(pytest) >BuildRequires: python3dist(pytest-xdist) >%endif > >Requires: python3 >Requires: python3dist(fuse-python) >Requires: python3dist(pylibacl) >Requires: python3dist(pyxattr) >Requires: python3dist(tornado) >Requires: git-core >= 1.5.6 >Requires: parchive2 > >%description >Very efficient backup system based on the git packfile format, >providing fast incremental saves and global deduplication >(among and within files, including virtual machine images). > >%package web >License: LGPL-2.0 >Summary: Web server for browsing through bup repositories >Group: Archiving/Backup >Requires: %name = %version-%release >Requires: python3dist(tornado) > >%description web >Provides the "bup web" command which runs a web server for browsing through >bup repositories. > >%prep >%autosetup -p1 -n %{name}-%{version} > ># Fix bash >sed -i -e "s|\/usr\/bin\/env bash|\/bin\/bash|g" lib/cmd/bup-import-rdiff-backup ># Fix config for [-Wimplicit-int] compiler flag. >sed -i -e "s|main()|int main()|g" config/configure.inc > >%build ># NB: Custom made, do not try %%configure >./configure \ > --prefix=%{_prefix} \ > --confdir=%{_sysconfdir} \ > --libexecdir=%{_libexecdir} \ > --libdir=%{_libdir} \ > --execdir=%{_bindir} \ > --sbindir=%{_sbindir} \ > --mandir=%{_mandir} >%make_build PYTHON=%{__python3} > >%install >%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}/bup >ln -sf %{_libdir}/bup/cmd/bup %{buildroot}%{_bindir}/%{name} > ># Alternative documentaion build for bup because pandoc is not available in Mageia. ># While complete and fairly neat, this is not as nicely formatted for html docs. >%if %{without pandoc} >mkdir -p %{buildroot}{%{_pkgdocdir}/html,%{_mandir}/man1} >cd Documentation >for i in *.md; do ri=${i%.*} > # Fix version - GNUMakefile #250 > sed -i -e "s/%BUP_VERSION%/%{version}/g" -e "s/%BUP_DATE%/%{version}/g" $i > # Generate html doc - GNUMakefile #261 > docutils --parser=markdown --writer=html5 $i > %{buildroot}%{_pkgdocdir}/html/$ri.html > # Generate manpages - GNUMakefile #257 > go-md2man --in $i --out %{buildroot}%{_mandir}/man1/$ri.1 > # Beautify manpages > sed -i -e "s/.TH $ri.*/.TH $ri 1 %{version} bup bup/" %{buildroot}%{_mandir}/man1/$ri.1 > sed -i -e '3,5d;$a .SH AUTHORS\nBrandon Low - lostlogic@lostlogicx.com' %{buildroot}%{_mandir}/man1/$ri.1 >done >%endif > ># Add bup web service config file >#install -Dm0644 %{SOURCE1} %{buildroot}%{_unitdir}/bup-web.service >mkdir -p %{buildroot}%{_unitdir} >cat > %{buildroot}%{_unitdir}/bup-web.service <<EOF >[Unit] >Description=Web server for browsing through bup repositories >Documentation=man:bup-web(1) >After=network.target > >[Service] >Type=simple >ExecStart=/usr/bin/bup web >Restart=on-failure > >[Install] >WantedBy=default.target >EOF > >%check >#takes a long time to complete!!! >%{?with_test:make check} > >%post web >%_post_service bup-web > >%preun web >%_preun_service bup-web > >%files >%license LICENSE >%doc README.md README DESIGN >%{_bindir}/%{name} >%{_libdir}/%{name}/* >%{_mandir}/man1/bup*.1* >%{_pkgdocdir}/html/* >%exclude %{_libdir}/%{name}/web >%exclude %{_mandir}/man1/bup-web.1* > >%files web >%{_libdir}/%name/web/ >%{_unitdir}/bup-web.service >%{_mandir}/man1/bup-web.1*
# Bup tests take some time to complete! %bcond_with test # pandoc not available for Mageia! %bcond_with pandoc Name: bup Version: 0.33.3 Release: %mkrel 0.7 Summary: Very efficient backup system based on git License: LGPL-2.0-only Group: Archiving/Backup URL: https://bup.github.io/ Source0: https://github.com/bup/bup/archive/refs/tags/%{name}-%{version}.tar.gz BuildRequires: git-core >= 1.5.6 BuildRequires: pkgconfig(libacl) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(readline) BuildRequires: python3dist(fuse-python) BuildRequires: python3dist(pylibacl) BuildRequires: python3dist(pyxattr) BuildRequires: python3dist(tornado) BuildRequires: perl-Time-HiRes %if %{without pandoc} BuildRequires: python3dist(docutils) BuildRequires: python3dist(recommonmark) BuildRequires: golang-github-cpuguy83-md2man %else BuildRequires: pandoc %endif %if %{with test} BuildRequires: duplicity BuildRequires: parchive2 BuildRequires: rdiff-backup BuildRequires: rsync BuildRequires: python3dist(pylint) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) %endif Requires: python3 Requires: python3dist(fuse-python) Requires: python3dist(pylibacl) Requires: python3dist(pyxattr) Requires: python3dist(tornado) Requires: git-core >= 1.5.6 Requires: parchive2 %description Very efficient backup system based on the git packfile format, providing fast incremental saves and global deduplication (among and within files, including virtual machine images). %package web License: LGPL-2.0 Summary: Web server for browsing through bup repositories Group: Archiving/Backup Requires: %name = %version-%release Requires: python3dist(tornado) %description web Provides the "bup web" command which runs a web server for browsing through bup repositories. %prep %autosetup -p1 -n %{name}-%{version} # Fix bash sed -i -e "s|\/usr\/bin\/env bash|\/bin\/bash|g" lib/cmd/bup-import-rdiff-backup # Fix config for [-Wimplicit-int] compiler flag. sed -i -e "s|main()|int main()|g" config/configure.inc %build # NB: Custom made, do not try %%configure ./configure \ --prefix=%{_prefix} \ --confdir=%{_sysconfdir} \ --libexecdir=%{_libexecdir} \ --libdir=%{_libdir} \ --execdir=%{_bindir} \ --sbindir=%{_sbindir} \ --mandir=%{_mandir} %make_build PYTHON=%{__python3} %install %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}/bup ln -sf %{_libdir}/bup/cmd/bup %{buildroot}%{_bindir}/%{name} # Alternative documentaion build for bup because pandoc is not available in Mageia. # While complete and fairly neat, this is not as nicely formatted for html docs. %if %{without pandoc} mkdir -p %{buildroot}{%{_pkgdocdir}/html,%{_mandir}/man1} cd Documentation for i in *.md; do ri=${i%.*} # Fix version - GNUMakefile #250 sed -i -e "s/%BUP_VERSION%/%{version}/g" -e "s/%BUP_DATE%/%{version}/g" $i # Generate html doc - GNUMakefile #261 docutils --parser=markdown --writer=html5 $i > %{buildroot}%{_pkgdocdir}/html/$ri.html # Generate manpages - GNUMakefile #257 go-md2man --in $i --out %{buildroot}%{_mandir}/man1/$ri.1 # Beautify manpages sed -i -e "s/.TH $ri.*/.TH $ri 1 %{version} bup bup/" %{buildroot}%{_mandir}/man1/$ri.1 sed -i -e '3,5d;$a .SH AUTHORS\nBrandon Low - lostlogic@lostlogicx.com' %{buildroot}%{_mandir}/man1/$ri.1 done %endif # Add bup web service config file #install -Dm0644 %{SOURCE1} %{buildroot}%{_unitdir}/bup-web.service mkdir -p %{buildroot}%{_unitdir} cat > %{buildroot}%{_unitdir}/bup-web.service <<EOF [Unit] Description=Web server for browsing through bup repositories Documentation=man:bup-web(1) After=network.target [Service] Type=simple ExecStart=/usr/bin/bup web Restart=on-failure [Install] WantedBy=default.target EOF %check #takes a long time to complete!!! %{?with_test:make check} %post web %_post_service bup-web %preun web %_preun_service bup-web %files %license LICENSE %doc README.md README DESIGN %{_bindir}/%{name} %{_libdir}/%{name}/* %{_mandir}/man1/bup*.1* %{_pkgdocdir}/html/* %exclude %{_libdir}/%{name}/web %exclude %{_mandir}/man1/bup-web.1* %files web %{_libdir}/%name/web/ %{_unitdir}/bup-web.service %{_mandir}/man1/bup-web.1*
View Attachment As Raw
Actions:
View
Attachments on
bug 32389
:
14574
| 14575