-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnethserver-calibre.spec
82 lines (64 loc) · 2.31 KB
/
nethserver-calibre.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Name: nethserver-calibre
Version: 0.0.5
Release: 2%{?dist}
Summary: NethServer Calibre Content Server configuration
License: GPLv3
URL: https://github.com/dnutan/%{name}
Source: %{name}-%{version}.tar.gz
BuildRequires: nethserver-devtools
Requires: perl
Requires: python2
Requires: nethserver-httpd
Requires: nethserver-samba
Requires: wget
BuildArch: noarch
%description
NethServer Calibre Content Server configuration
#%pre
#if ! getent passwd calibre >/dev/null; then
# Add the "calibre" user
# useradd -r -U -s /sbin/nologin -d /var/lib/nethserver/calibre -c "Calibre User" calibre
#fi
%prep
%setup -q
%build
%{makedocs}
perl createlinks
%install
#rm -rf %{buildroot}
(cd root; find . -depth -print | cpio -dump %{buildroot})
# mkdir -p %{buildroot}/var/lib/nethserver/calibre/{.config/calibre,libraries}
# mkdir -p %{buildroot}/var/log/calibre
%{genfilelist} %{buildroot} > %{name}-%{version}-filelist
#%{genfilelist} %{buildroot} \
#%{genfilelist} %{buildroot} \
# --dir /var/lib/nethserver/calibre \
# --dir /var/log/calibre > %{name}-%{version}-filelist
# --dir /var/lib/nethserver/calibre 'attr(0755,calibre,calibre)' \
# --dir /var/log/calibre 'attr(0755,calibre,calibre)' > %{name}-%{version}-filelist
cat %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%license COPYING
#%%doc README.rst
%dir %{_nseventsdir}/%{name}-update
%changelog
* Tue Sep 11 2018 @dnutan <[email protected]> - 0.0.5-2.ns7
- actions/nethserver-calibre-smb-conf: add calibre smb share
- smb.conf/75calibre-samba: add calibre smb share
- createlinks: add calibre smb share
- spec: require nethserver-samba
* Sat Sep 08 2018 @dnutan <[email protected]> - 0.0.5-1.ns7
- Applications/Calibre.php: Dashboard links
* Sat Sep 08 2018 @dnutan <[email protected]> - 0.0.4-1.ns7
- conf.d/zz_calibre.conf: unfragment template
- conf.d/zz_calibre.conf: fix virtual host to subpath
- default-virtualhost.inc/40calibre: redirect subpath
* Sat Sep 08 2018 @dnutan <[email protected]> - 0.0.3-1.ns7
- actions/nethserver-calibre-conf: reduce code to handle libraries
- zz_calibre.conf: fragment template
* Sun Sep 01 2018 @dnutan <[email protected]> - 0.0.2-1.ns7
- split db
- refactor handling of calibre libraries
* Wed Aug 22 2018 @dnutan <[email protected]> - 0.0.1-1.ns7
- Initial Development Release