Skip to content

Commit 9702d3c

Browse files
author
David Coutadeur
committed
rpm cleanup (#206)
1 parent 94b0824 commit 9702d3c

File tree

5 files changed

+51
-52
lines changed

5 files changed

+51
-52
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
templates_c/*
22
cache/*
3-
/vendor/
43
/htdocs/vendor/bootstrap/
54
/htdocs/vendor/datatables/
65
!/htdocs/vendor/datatables/i18n/

packaging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $ ./makedist 0.4
4444

4545
## Debian
4646

47-
Form current directory, do:
47+
From current directory, do:
4848
```
4949
$ dpkg-buildpackage -b -kLTB
5050
```

packaging/debian/control

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,31 @@ Description: LDAP white pages web interface
1717
White Pages bundles some dependencies:
1818
- js-bootstrap = v5.3.6
1919
- js-jquery = v3.7.1
20-
- js-datatables.net-datatables.net = 2.1.2
20+
- js-datatables.net-datatables.net = 2.3.6
2121
- js-datatables.net-datatables.net-bs5 = 2.0.8
22-
- js-datatables.net-datatables.net-buttons = 3.1.0
22+
- js-datatables.net-datatables.net-buttons = 3.2.6
2323
- js-datatables.net-datatables.net-buttons-bs5 = 3.0.2
2424
- fontawesome-fonts = 6.5.2
25-
- php-ltb-project-ltb-common = 0.3.0
26-
- php-bjeavons-zxcvbn-php = 1.3.1
27-
- php-guzzlehttp-guzzle = 7.8.1
28-
- php-guzzlehttp-promises = 2.0.2
29-
- php-guzzlehttp-psr7 = 2.6.2
25+
- php-ltb-project-ltb-common = 0.6.2
26+
- php-bjeavons-zxcvbn-php = 1.4.2
27+
- php-guzzlehttp-guzzle = 7.10.0
28+
- php-guzzlehttp-promises = 2.3.0
29+
- php-guzzlehttp-psr7 = 2.8.0
3030
- php-mxrxdxn-pwned-passwords = 2.1.0
31-
- php-phpmailer = 6.9.1
31+
- php-phpmailer = 6.12.0
3232
- php-psr-http-client = 1.0.3
33-
- php-psr-http-factory = 1.0.2
33+
- php-psr-http-factory = 1.1.0
3434
- php-psr-http-message = 2.0
3535
- php-ralouphie-getallheaders = 3.0.3
36-
- php-symfony-deprecation-contracts = 2.5.1
37-
- php-symfony-finder = 7.0.0
38-
- php-symfony-polyfill = v1.31.0
39-
- php-symfony-deprecation-contracts = v2.5.3
40-
- php-symfony-var-exporter = v5.4.40
36+
- php-symfony-deprecation-contracts = 2.5.4
37+
- php-symfony-polyfill = v1.33.0
38+
- php-symfony-deprecation-contracts = v2.5.4
39+
- php-symfony-var-exporter = v5.4.45
4140
- php-psr-container = 1.1.2
42-
- php-symfony-service-contracts = v2.5.3
41+
- php-symfony-service-contracts = v2.5.4
4342
- php-psr-cache = 1.0.1
44-
- php-symfony-cache-contracts = v2.5.3
43+
- php-symfony-cache-contracts = v2.5.4
4544
- php-psr-log = 1.1.4
46-
- php-symfony-cache = v5.4.42
47-
- php-predis-predis = v2.2.2
45+
- php-symfony-cache = v5.4.46
46+
- php-predis-predis = v2.4.1
4847

packaging/rpm/SPECS/white-pages.spec

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,52 +36,45 @@ Requires: php-fpm
3636

3737
Provides: bundled(js-bootstrap) = v5.3.6
3838
Provides: bundled(js-jquery) = v3.7.1
39-
Provides: bundled(js-datatables.net-datatables.net) = 2.1.2
39+
Provides: bundled(js-datatables.net-datatables.net) = 2.3.6
4040
Provides: bundled(js-datatables.net-datatables.net-bs5) = 2.0.8
41-
Provides: bundled(js-datatables.net-datatables.net-buttons) = 3.1.0
41+
Provides: bundled(js-datatables.net-datatables.net-buttons) = 3.2.6
4242
Provides: bundled(js-datatables.net-datatables.net-buttons-bs5) = 3.0.2
4343
Provides: bundled(fontawesome-fonts) = 6.5.2
44-
Provides: bundled(php-ltb-project-ltb-common) = 0.3.0
45-
Provides: bundled(php-bjeavons-zxcvbn-php) = 1.3.1
46-
Provides: bundled(php-guzzlehttp-guzzle) = 7.8.1
47-
Provides: bundled(php-guzzlehttp-promises) = 2.0.2
48-
Provides: bundled(php-guzzlehttp-psr7) = 2.6.2
44+
Provides: bundled(php-ltb-project-ltb-common) = 0.6.2
45+
Provides: bundled(php-bjeavons-zxcvbn-php) = 1.4.2
46+
Provides: bundled(php-guzzlehttp-guzzle) = 7.10.0
47+
Provides: bundled(php-guzzlehttp-promises) = 2.3.0
48+
Provides: bundled(php-guzzlehttp-psr7) = 2.8.0
4949
Provides: bundled(php-mxrxdxn-pwned-passwords) = 2.1.0
50-
Provides: bundled(php-phpmailer) = 6.9.1
50+
Provides: bundled(php-phpmailer) = 6.12.0
5151
Provides: bundled(php-psr-http-client) = 1.0.3
52-
Provides: bundled(php-psr-http-factory) = 1.0.2
52+
Provides: bundled(php-psr-http-factory) = 1.1.0
5353
Provides: bundled(php-psr-http-message) = 2.0
5454
Provides: bundled(php-ralouphie-getallheaders) = 3.0.3
55-
Provides: bundled(php-symfony-deprecation-contracts) = 3.4.0
56-
Provides: bundled(php-symfony-finder) = 7.0.0
57-
Provides: bundled(php-symfony-polyfill) = v1.31.0
58-
Provides: bundled(php-symfony-deprecation-contracts) = v2.5.3
59-
Provides: bundled(php-symfony-var-exporter) = v5.4.40
55+
Provides: bundled(php-symfony-deprecation-contracts) = 2.5.4
56+
Provides: bundled(php-symfony-polyfill) = v1.33.0
57+
Provides: bundled(php-symfony-var-exporter) = v5.4.45
6058
Provides: bundled(php-psr-container) = 1.1.2
61-
Provides: bundled(php-symfony-service-contracts) = v2.5.3
59+
Provides: bundled(php-symfony-service-contracts) = v2.5.4
6260
Provides: bundled(php-psr-cache) = 1.0.1
63-
Provides: bundled(php-symfony-cache-contracts) = v2.5.3
61+
Provides: bundled(php-symfony-cache-contracts) = v2.5.4
6462
Provides: bundled(php-psr-log) = 1.1.4
65-
Provides: bundled(php-symfony-cache) = v5.4.42
66-
Provides: bundled(php-predis-predis) = v2.2.2
63+
Provides: bundled(php-symfony-cache) = v5.4.46
64+
Provides: bundled(php-predis-predis) = v2.4.1
6765

6866
%description
69-
White Pages is a PHP application that allows users to search and display data stored in an LDAP directory.
67+
White Pages is a PHP application that allows users to search and display
68+
data stored in an LDAP directory.
7069
White Pages is provided by LDAP Tool Box project: https://ltb-project.org
7170

72-
#=================================================
73-
# Source preparation
74-
#=================================================
7571
%prep
7672
%setup -q -n %{wp_realname}-%{version}
7773
# Clean hidden files in bundled php libs
7874
find . \
7975
\( -name .gitignore -o -name .travis.yml -o -name .pullapprove.yml \) \
8076
-delete
8177

82-
#=================================================
83-
# Installation
84-
#=================================================
8578
%install
8679
# Create directories
8780
mkdir -p %{buildroot}/%{wp_destdir}
@@ -133,6 +126,7 @@ for file in $( grep -r -l -E "\([^(]+\/conf\/[^)]+\)" %{buildroot}/%{wp_destdir}
133126
${file}
134127
done
135128

129+
136130
%pre
137131
# Backup old configuration to /etc/white-pages
138132
for file in $( find %{wp_destdir}/conf -name "*.php" -type f ! -name 'config.inc.php' -printf "%f\n" 2>/dev/null );
@@ -150,7 +144,7 @@ fi
150144

151145

152146
%post
153-
# Move old configuration to /etc/self-service-password
147+
# Move old configuration to /etc/white-pages
154148
for file in $( find %{_sysconfdir}/%{name} -name "*.save" -type f );
155149
do
156150
# move previously created *.save file into its equivalent without .save
@@ -172,7 +166,7 @@ rm -rf %{wp_cachedir}/{cache,templates_c}/*
172166
%attr(-,apache,apache) %{wp_cachedir}/templates_c
173167

174168
%changelog
175-
* Tue Dec 23 2025 - Clement Oudot <clem@ltb-project.org> - 0.5-1
169+
* Tue Dec 23 2025 Clement Oudot <clem@ltb-project.org> - 0.5-1
176170
- gh#83: Only display white pages to authenticated LDAP users
177171
- gh#128: Add multi-tenancy feature
178172
- gh#129: Possibility to configure attribute displayed in a DN link
@@ -239,9 +233,11 @@ rm -rf %{wp_cachedir}/{cache,templates_c}/*
239233
- gh#201: Patterns for attributes
240234
- gh#202: Do not use tables when not needed
241235
- gh#204: Improve responsiveness
242-
* Wed May 17 2023 - Clement Oudot <clem@ltb-project.org> - 0.4-2
236+
237+
* Wed May 17 2023 Clement Oudot <clem@ltb-project.org> - 0.4-2
243238
- gh#126: Missing bin/ directory in packages
244-
* Thu May 04 2023 - Clement Oudot <clem@ltb-project.org> - 0.4-1
239+
240+
* Thu May 04 2023 Clement Oudot <clem@ltb-project.org> - 0.4-1
245241
- gh#75: Display account : empty result
246242
- gh#76: add a option to change timeout of ldap connexion
247243
- gh#77: Gallery by group
@@ -278,7 +274,8 @@ rm -rf %{wp_cachedir}/{cache,templates_c}/*
278274
- gh#123: Smarty debug (issue #116)
279275
- gh#124: Bug in group display in user and group base are the same
280276
- gh#125: Group rendering
281-
* Tue Jul 23 2019 - Clement Oudot <clem@ltb-project.org> - 0.3-1
277+
278+
* Tue Jul 23 2019 Clement Oudot <clem@ltb-project.org> - 0.3-1
282279
- gh#42: add dropdown list to advanced search criteria
283280
- gh#47: Do not display not found groups/users
284281
- gh#48: Check ldap_bind return code instead of ldap_errorno
@@ -303,7 +300,8 @@ rm -rf %{wp_cachedir}/{cache,templates_c}/*
303300
- gh#72: Sorting and paging regression
304301
- gh#73: Option to display a logout link in the menu
305302
- gh#74: Provide a new type (list)
306-
* Mon Apr 16 2018 - Clement Oudot <clem@ltb-project.org> - 0.2-1
303+
304+
* Mon Apr 16 2018 Clement Oudot <clem@ltb-project.org> - 0.2-1
307305
- gh#4: Italian language file
308306
- gh#5: Feature request : add export to CSV
309307
- gh#7: Export entry as VCard
@@ -331,5 +329,6 @@ rm -rf %{wp_cachedir}/{cache,templates_c}/*
331329
- gh#39: Add display for member/memberOf attributes
332330
- gh#40: Displaying binary data attributes
333331
- gh#41: Move label to title leads to misunderstanding
334-
* Tue Nov 22 2016 - Clement Oudot <clem@ltb-project.org> - 0.1-1
332+
333+
* Tue Nov 22 2016 Clement Oudot <clem@ltb-project.org> - 0.1-1
335334
- First release

vendor/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)