cleared bug #901916
Georges Khaznadar
3 years ago
0 | chemical-structures (2.2.dfsg.0-16) unstable; urgency=medium | |
1 | ||
2 | * split the packages in two parts: chemical-structures and | |
3 | chemical-structures-data. Closes: #901916 | |
4 | * added the package chemical-structures-data and its description, | |
5 | added the dependency chemical-structures -> chemical-structures-data | |
6 | in d/control | |
7 | * created files d/chemical-structures-data.install and | |
8 | d/chemical-structures.install | |
9 | * modified d/rules to take in account the changes, and move a lot | |
10 | of files from chemical-structures-data's subdirectory to | |
11 | chemical-structures. | |
12 | ||
13 | -- Georges Khaznadar <georgesk@debian.org> Fri, 04 Dec 2020 16:32:46 +0100 | |
14 | ||
0 | 15 | chemical-structures (2.2.dfsg.0-15) unstable; urgency=medium |
1 | 16 | |
2 | 17 | * fixed a lot of details which were idioms of python2 to comply with |
0 | usr/share/chemical-structures |
9 | 9 | |
10 | 10 | Package: chemical-structures |
11 | 11 | Architecture: all |
12 | Depends: ${misc:Depends}, debconf, python3, openbabel, sensible-utils | |
12 | Depends: ${misc:Depends}, | |
13 | debconf, | |
14 | python3, | |
15 | openbabel, | |
16 | sensible-utils, | |
17 | chemical-structures-data | |
13 | 18 | Recommends: chemical-mime-data, apache2| httpd, iceweasel|iceape |
14 | 19 | Suggests: jmol, jmol-applet |
20 | Description: web service providing molecular structures in open formats | |
21 | This web service allows one to browse a rich set of molecular | |
22 | structures provided by the package chemical-structures-data, and | |
23 | eventually have them translated to other open formats, thanks to | |
24 | openbabel. | |
25 | ||
26 | Package: chemical-structures-data | |
27 | Architecture: all | |
28 | Depends: ${misc:Depends} | |
15 | 29 | Description: set of molecular structures in open formats |
16 | 30 | hundreds of molecular structures, in the following classes: alcohols, |
17 | 31 | aldehydes, alkanes, alkenes, amides, amines, amino_acids, aromatics, |
18 | 32 | carboxylic_acids, esters, ethers, fatty_acids, haloalkanes, ketones, |
19 | 33 | nitriles,nucleobases, water. |
20 |
8 | 8 | # Uncomment this to turn on verbose mode. |
9 | 9 | #export DH_VERBOSE=1 |
10 | 10 | |
11 | DESTDIR = $(CURDIR)/debian/chemical-structures | |
11 | DESTDIR = $(CURDIR)/debian/tmp | |
12 | 12 | DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl |
13 | 13 | XP = xsltproc --nonet |
14 | 14 | |
33 | 33 | |
34 | 34 | override_dh_auto_install: |
35 | 35 | cd build; make install |
36 | install -d $(DESTDIR)/usr/share/ | |
36 | 37 | install -m 755 convert.cgi $(DESTDIR)/usr/share/chemical-structures |
37 | 38 | install -m 644 index.html $(DESTDIR)/usr/share/chemical-structures |
39 | install -d $(DESTDIR)/usr/bin | |
38 | 40 | install -m 755 chemstruc $(DESTDIR)/usr/bin |
41 | install -d $(DESTDIR)/etc/apache2/conf-available | |
39 | 42 | install -m 644 apache.conf $(DESTDIR)/etc/apache2/conf-available/chemical-structures.conf |
40 | 43 | rm -f $(DESTDIR)/usr/share/chemical-structures/jmol/LICENSE.txt |
41 | 44 | sh removeMolTimestamp $(DESTDIR)/usr/share/chemical-structures |
42 | 45 | |
46 | override_dh_install: | |
47 | # take in account d/*.install files | |
48 | dh_install | |
49 | # create necessary subdirectories under /usr/share/chemical-structures | |
50 | # for the package chemical-structures. | |
51 | for d in $$(find debian/chemical-structures-data/usr/share/chemical-structures -maxdepth 1 -mindepth 1 -type d); do \ | |
52 | e=$$(echo $$d| sed 's/chemical-structures-data/chemical-structures/'); \ | |
53 | install -d $$e; \ | |
54 | done | |
55 | # move every HTML file from chemical-structures-data to | |
56 | # chemical-structures. | |
57 | # first, from the molecules families' subdirectories: | |
58 | for f in $$(find debian/chemical-structures-data/usr/share/chemical-structures/*/*.html); do \ | |
59 | g=$$(echo $$f| sed 's/chemical-structures-data/chemical-structures/'); \ | |
60 | echo "$$(basename $$f): chemical-structures-data ==> chemical-structures"; \ | |
61 | mv $$f $$g; \ | |
62 | done | |
63 | # then from the top directory, and including the gci script. | |
64 | for f in $$(find debian/chemical-structures-data/usr/share/chemical-structures -maxdepth 1 -type f); do \ | |
65 | g=$$(echo $$f| sed 's/chemical-structures-data/chemical-structures/'); \ | |
66 | mv $$f $$g; \ | |
67 | done | |
68 |