/[smecontribs]/rpms/phpMyAdmin/contribs10/phpMyAdmin.spec
ViewVC logotype

Diff of /rpms/phpMyAdmin/contribs10/phpMyAdmin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Sun Feb 28 06:34:59 2021 UTC Revision 1.2 by jpp, Sun Feb 28 08:27:59 2021 UTC
# Line 2  Line 2 
2  %global pkgname phpMyAdmin  %global pkgname phpMyAdmin
3    
4  # Having below mentioned separate projects externally or only internally?  # Having below mentioned separate projects externally or only internally?
5  %global gettext 1  %global gettext 0
6  %global tcpdf   1  %global tcpdf   0
7    
8  %if 0%{?fedora} >= 21  %if 0%{?fedora} >= 21
9  # nginx 1.6 with nginx-filesystem  # nginx 1.6 with nginx-filesystem
# Line 17  Line 17 
17    
18  Summary:        Handle the administration of MySQL over the World Wide Web  Summary:        Handle the administration of MySQL over the World Wide Web
19  Name:           phpMyAdmin  Name:           phpMyAdmin
20  Version:        4.4.15.10  Version:        5.1.0
21  Release:        4%{?dist}  Release:        1%{?dist}
22  # MIT (js/jquery/, js/canvg/, js/codemirror/, libraries/sql-formatter/),  # MIT (js/jquery/, js/canvg/, js/codemirror/, libraries/sql-formatter/),
23  # BSD (libraries/plugins/auth/recaptcha/),  # BSD (libraries/plugins/auth/recaptcha/),
24  # GPLv2+ (the rest)  # GPLv2+ (the rest)
# Line 30  Source1:       https://files.phpmyadmin.net/%{ Line 30  Source1:       https://files.phpmyadmin.net/%{
30  Source2:        phpMyAdmin-config.inc.php  Source2:        phpMyAdmin-config.inc.php
31  Source3:        phpMyAdmin.htaccess  Source3:        phpMyAdmin.htaccess
32  Source4:        phpMyAdmin.nginx  Source4:        phpMyAdmin.nginx
33  Patch0:         phpMyAdmin-4.4.15.10-pmasa-2017-8.patch  Source5:        https://files.phpmyadmin.net/phpmyadmin.keyring
34  Patch1:         phpMyAdmin-4.4.15.10-pmasa-2018-1.patch  
35  Patch2:         phpMyAdmin-4.4.15.10-force-links.patch  Patch0:         phpMyAdmin-certs.patch
36  Patch3:         phpMyAdmin-4.4.15.10-php-array.patch  #Patch0:                phpMyAdmin-4.4.15.10-pmasa-2017-8.patch
37  Patch4:         phpMyAdmin-4.4.15.10-gettext-search.patch  #Patch1:                phpMyAdmin-4.4.15.10-pmasa-2018-1.patch
38    #Patch2:                phpMyAdmin-4.4.15.10-force-links.patch
39    #Patch3:                phpMyAdmin-4.4.15.10-php-array.patch
40    #Patch4:                phpMyAdmin-4.4.15.10-gettext-search.patch
41  # Optional (and partially redundant) runtime requirements: php-bcmath, php-gmp, php-recode, php-soap,  # Optional (and partially redundant) runtime requirements: php-bcmath, php-gmp, php-recode, php-soap,
42  # php-mcrypt, php-phpseclib-crypt-aes >= 2.0.0, php-phpseclib-crypt-random >= 2.0.0  # php-mcrypt, php-phpseclib-crypt-aes >= 2.0.0, php-phpseclib-crypt-random >= 2.0.0
43  Requires:       php(language) >= 5.3.7, php-filter, php-xmlwriter  Requires:       php74-php(language) >= 5.3.7, php-filter, php-xmlwriter
44  %if %{with_nginx}  %if %{with_nginx}
45  Requires:       nginx-filesystem  Requires:       nginx-filesystem
46  %endif  %endif
# Line 58  Requires:      php-tcpdf, php-tcpdf-dejavu-sa Line 61  Requires:      php-tcpdf, php-tcpdf-dejavu-sa
61  %else  %else
62  Requires:       php-hash, php-xml >= 5.3.7  Requires:       php-hash, php-xml >= 5.3.7
63  %endif  %endif
64    
65    # Update from other 3rd party
66    Obsoletes: phpMyAdmin50 <= %{version}
67    Obsoletes: phpMyAdmin49 <= %{version}
68    Obsoletes: phpmyadmin   <  %{version}
69  Provides:       phpmyadmin = %{version}-%{release}  Provides:       phpmyadmin = %{version}-%{release}
70  BuildArch:      noarch  BuildArch:      noarch
71  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
72    BuildRequires: gnupg2
73    
74    
75  %description  %description
76  phpMyAdmin is a tool written in PHP intended to handle the administration of  phpMyAdmin is a tool written in PHP intended to handle the administration of
# Line 83  transforming stored data into any format Line 93  transforming stored data into any format
93  like displaying BLOB-data as image or download-link and much more...  like displaying BLOB-data as image or download-link and much more...
94    
95  %prep  %prep
96    %{?gpgverify:%{gpgverify} --keyring='%{SOURCE5}' --signature='%{SOURCE1}' --data='%{SOURCE0}'}
97    
98  %setup -q -n %{pkgname}-%{version}-all-languages  %setup -q -n %{pkgname}-%{version}-all-languages
99  %patch0 -p1  %patch0 -p1
100  %patch1 -p1  #%patch1 -p1
101  %patch2 -p1  #%patch2 -p1
102  %patch3 -p1  #%patch3 -p1
103  %patch4 -p1  #%patch4 -p1
104    
105  # Setup vendor config file  # Setup vendor config file
106  sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@%{_pkgdocdir}/ChangeLog@" \  sed -e "/'CHANGELOG_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \
107      -e "/'LICENSE_FILE'/s@./LICENSE@%{_pkgdocdir}/LICENSE@" \      -e "/'LICENSE_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \
108      -e "/'CONFIG_DIR'/s@'./'@'%{_sysconfdir}/%{pkgname}/'@" \      -e "/'CONFIG_DIR'/s@ROOT_PATH@'%{_sysconfdir}/%{name}/'@" \
109      -e "/'SETUP_CONFIG_FILE'/s@./config/config.inc.php@%{_localstatedir}/lib/%{pkgname}/config/config.inc.php@" \      -e "/'SETUP_CONFIG_FILE'/s@./config/config.inc.php@%{_localstatedir}/lib/%{pkgname}/config/config.inc.php@" \
110  %if 0%{?gettext}  %if 0%{?gettext}
111      -e "/'GETTEXT_INC'/s@./libraries/php-gettext/gettext.inc@%{_datadir}/php/gettext/gettext.inc@" \      -e "/'GETTEXT_INC'/s@./libraries/php-gettext/gettext.inc@%{_datadir}/php/gettext/gettext.inc@" \
# Line 101  sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@ Line 113  sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@
113  %if 0%{?tcpdf}  %if 0%{?tcpdf}
114      -e "/'TCPDF_INC'/s@./libraries/tcpdf/tcpdf.php@%{_datadir}/php/tcpdf/tcpdf.php@" \      -e "/'TCPDF_INC'/s@./libraries/tcpdf/tcpdf.php@%{_datadir}/php/tcpdf/tcpdf.php@" \
115  %endif  %endif
116      -e "/'PHPSECLIB_INC_DIR'/s@./libraries/phpseclib@%{_datadir}/pear@" \      -e "/'##PHPSECLIB_INC_DIR'/s@./libraries/phpseclib@%{_datadir}/pear@" \
117  %if 0%{?_licensedir:1}  %if 0%{?_licensedir:1}
118      -e '/LICENSE_FILE/s:%_defaultdocdir:%_defaultlicensedir:' \      -e '/LICENSE_FILE/s:%_defaultdocdir:%_defaultlicensedir:' \
119  %endif  %endif
120        -e "/TEMP_DIR/s@ROOT.*tmp'@'%{_localstatedir}/lib/%{name}/temp'@" \
121        -e "/CACHE_DIR/s@ROOT.*cache'@'%{_localstatedir}/lib/%{name}/cache'@" \
122      -i libraries/vendor_config.php      -i libraries/vendor_config.php
123    
124    # For debug
125    grep '^define' libraries/vendor_config.php
126    
127  # Remove bundled libraries  # Remove bundled libraries
128  %if 0%{?gettext}  %if 0%{?gettext}
129  rm -rf libraries/php-gettext/  rm -rf libraries/php-gettext/
# Line 116  rm -rf libraries/php-gettext/ Line 133  rm -rf libraries/php-gettext/
133  rm -rf libraries/tcpdf/  rm -rf libraries/tcpdf/
134  %endif  %endif
135    
136  rm -rf libraries/phpseclib/  #Koozali we keep
137    #rm -rf libraries/phpseclib/
138    
139  # Remove sources of JavaScript libraries  # Remove sources of JavaScript libraries
140  rm -rf js/jquery/src/ js/openlayers/src/  rm -rf js/jquery/src/ js/openlayers/src/
# Line 126  rm -rf js/jquery/src/ js/openlayers/src/ Line 144  rm -rf js/jquery/src/ js/openlayers/src/
144  %install  %install
145  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
146  mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkgname}  mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
147  mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{pkgname}/{upload,save,config}/  mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{pkgname}/{upload,save,config,temp}/
148  cp -ad * $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/  cp -ad * $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/
149  install -Dpm 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{pkgname}.conf  install -Dpm 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{pkgname}.conf
150  install -Dpm 0640 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{pkgname}/config.inc.php  install -Dpm 0640 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{pkgname}/config.inc.php
# Line 134  install -Dpm 0640 %{SOURCE2} $RPM_BUILD_ Line 152  install -Dpm 0640 %{SOURCE2} $RPM_BUILD_
152  install -Dpm 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/%{pkgname}.conf  install -Dpm 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/%{pkgname}.conf
153  %endif  %endif
154    
155    
156  rm -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/{[CDLR]*,*.txt,config.sample.inc.php}  rm -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/{[CDLR]*,*.txt,config.sample.inc.php}
157  rm -rf $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/{doc,examples}/  rm -rf $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/{doc,examples}/
158  rm -f doc/html/.buildinfo  rm -f doc/html/.buildinfo
# Line 142  mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pk Line 161  mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pk
161  ln -s ../../../..%{_pkgdocdir}/html/ $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/doc/html  ln -s ../../../..%{_pkgdocdir}/html/ $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/doc/html
162  mv -f config.sample.inc.php examples/  mv -f config.sample.inc.php examples/
163    
164  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/jquery/MIT-LICENSE.txt LICENSE-jquery  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/jquery/MIT-LICENSE.txt LICENSE-jquery
165  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/canvg/MIT-LICENSE.txt LICENSE-canvg  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/canvg/MIT-LICENSE.txt LICENSE-canvg
166  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/codemirror/LICENSE LICENSE-codemirror  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/js/codemirror/LICENSE LICENSE-codemirror
167  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/plugins/auth/recaptcha/LICENSE LICENSE-recaptcha  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/plugins/auth/recaptcha/LICENSE LICENSE-recaptcha
168  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/sql-formatter/LICENSE.txt LICENSE-sql-formatter  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/sql-formatter/LICENSE.txt LICENSE-sql-formatter
169  %if ! 0%{?tcpdf}  %if ! 0%{?tcpdf}
170  mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/tcpdf/LICENSE.TXT LICENSE-tcpdf  #mv -f $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/libraries/tcpdf/LICENSE.TXT LICENSE-tcpdf
171  %endif  %endif
172    
173    # from remi
174    mv     %{buildroot}%{_datadir}/%{name}/libraries/cache %{buildroot}/%{_localstatedir}/lib/%{name}/cache
175    
176  %clean  %clean
177  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
178    
# Line 163  sed -e "/'blowfish_secret'/s/MUSTBECHANG Line 185  sed -e "/'blowfish_secret'/s/MUSTBECHANG
185  %defattr(-,root,root,-)  %defattr(-,root,root,-)
186  %{!?_licensedir:%global license %%doc}  %{!?_licensedir:%global license %%doc}
187  %license LICENSE*  %license LICENSE*
188  %doc ChangeLog README DCO doc/html/ examples/  %doc ChangeLog README  doc/html/ examples/
189  %{_datadir}/%{pkgname}/  %{_datadir}/%{pkgname}/
190  %dir %attr(0750,root,apache) %{_sysconfdir}/%{pkgname}/  %dir %attr(0750,root,apache) %{_sysconfdir}/%{pkgname}/
191  %config(noreplace) %attr(0640,root,apache) %{_sysconfdir}/%{pkgname}/config.inc.php  %config(noreplace) %attr(0640,root,apache) %{_sysconfdir}/%{pkgname}/config.inc.php
# Line 175  sed -e "/'blowfish_secret'/s/MUSTBECHANG Line 197  sed -e "/'blowfish_secret'/s/MUSTBECHANG
197  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/upload/  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/upload/
198  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/save/  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/save/
199  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/config/  %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/config/
200    %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/temp
201    %dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{pkgname}/cache
202         %attr(0640,apache,apache) %{_localstatedir}/lib/%{pkgname}/cache/*
203    
204  %changelog  %changelog
205    * Sun Feb 28 2021 Jean-Philipe Pialasse <tests@pialasse.com> 5.1.0-1.sme
206    - Upgrade to 5.1.0 [SME: 11043]
207      use epel spec with some modifications from remi
208    
209  * Tue Oct 29 2019 Robert Scheck <robert@fedoraproject.org> 4.4.15.10-4  * Tue Oct 29 2019 Robert Scheck <robert@fedoraproject.org> 4.4.15.10-4
210  - Added upstream patch for table searching with non-english locale  - Added upstream patch for table searching with non-english locale
211    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed