- new, based on src rpm
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 14 Apr 2012 00:31:25 +0000 (00:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  http://mirrors.coreix.net/MIB/2010.2/srpms/datacrow-3.9.3-69mib2010.2.src.rpm

Changed files:
    datacrow.desktop -> 1.1
    datacrow.sh -> 1.1
    datacrow.spec -> 1.1

datacrow.desktop [new file with mode: 0644]
datacrow.sh [new file with mode: 0644]
datacrow.spec [new file with mode: 0644]

diff --git a/datacrow.desktop b/datacrow.desktop
new file mode 100644 (file)
index 0000000..e5c6283
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=DataCrow
+GenericName=DataCrow
+Comment=Data Crow is a movie, video, book, software, and music cataloguer/database
+Exec=datacrow
+Icon=datacrow
+Terminal=false
+Type=Application
+Categories=Office;Database;
diff --git a/datacrow.sh b/datacrow.sh
new file mode 100644 (file)
index 0000000..2f6d685
--- /dev/null
@@ -0,0 +1,114 @@
+#!/bin/bash
+#
+# startscript for datacrow
+#
+# written by oc2pus
+#
+# Changelog:
+# 18.10.2006 initial version
+# 25.01.2007 added packman packages: metadata-extractor hsqldb
+# 05.04.2007 added xalan-j2, xerces-j2 splittet CLASSPATH
+#            new reports subdir
+# 27.10.2007 renamed helpfiles ==> help
+#            added subdir modules and upgrades
+# 22.01.2008 added log4j
+#            added *.properties
+#            new main-class
+# 25.03.2008 added plugin subdir
+# 13.06.2008 added webapp subdir
+# 03.09.2008 removed entagged-*
+# 02.11.2008 added BrowserLauncher2 and jaudiotagger
+# 20.12.2008 added xsltc and JTattoo
+# 25.01.2009 readded jaudiotagger
+# 24.11.2009 changed createLocalDir to reflect actual layout and use ln -sf
+# 04.12.2009 removed themes and skinlf
+
+# activate for debugging
+#set -x
+
+# base settings
+# home-directory of datacrow
+myDataCrowHome=/usr/share/datacrow
+
+# creates a local working directory in user-home
+function createLocalDir ()
+{
+       if [ ! -d $HOME/.datacrow ]; then
+               echo "creating local working directory $HOME/.datacrow ..."
+               mkdir -p $HOME/.datacrow
+       fi
+
+       # a link doesn't work ...
+       cp /usr/share/java/datacrow/datacrow.jar $HOME/.datacrow
+       ln -sf /usr/share/java/datacrow/lib      $HOME/.datacrow
+
+       ln -sf $myDataCrowHome/help      $HOME/.datacrow
+       ln -sf $myDataCrowHome/icons     $HOME/.datacrow
+       ln -sf $myDataCrowHome/resources $HOME/.datacrow
+#      ln -sf $myDataCrowHome/themes    $HOME/.datacrow
+
+       # new in 3.x
+       if [ ! -d $HOME/.datacrow/modules ]; then
+               mkdir -p $HOME/.datacrow/modules
+               cp -r $myDataCrowHome/modules $HOME/.datacrow
+       fi
+       ln -sf $myDataCrowHome/upgrade $HOME/.datacrow
+       if [ ! -f $HOME/.datacrow/log4j.properties ]; then
+               cp $myDataCrowHome/log4j.properties $HOME/.datacrow
+       fi
+
+       # new in 3.2
+       mkdir -p $HOME/.datacrow/plugins
+       ln -sf /usr/share/java/datacrow/plugins/*.class $HOME/.datacrow/plugins
+
+       # new in 3.3
+       webmodule=`LANG=C rpm -q datacrow-webmodule`
+       if [ "$webmodule" == "package datacrow-webmodule is not installed" ]; then
+               rm -rf $HOME/.datacrow/webapp
+       else
+               rm -rf $HOME/.datacrow/webapp
+               cp -r $myDataCrowHome/webapp $HOME/.datacrow
+       fi
+
+       # new in 3.9.2
+       if [ ! -d $HOME/.datacrow/services ]; then
+               mkdir -p $HOME/.datacrow/services
+       cp -r $myDataCrowHome/services $HOME/.datacrow
+       fi
+       if [ ! -d $HOME/.datacrow/reports ]; then
+               mkdir -p $HOME/.datacrow/reports
+       cp -r $myDataCrowHome/reports   $HOME/.datacrow
+       fi
+}
+
+echo ""
+echo "starting datacrow ..."
+
+# creates a local working directory in user-home
+createLocalDir
+
+# change to the working directory
+echo "changing to local working directory ~/.datacrow ..."
+cd $HOME/.datacrow
+
+# source the jpackage helpers
+VERBOSE=1
+. /usr/share/java-utils/java-functions
+
+# set JAVA_* environment variables
+set_javacmd
+check_java_env
+set_jvm_dirs
+
+set_flags "-Xmx1024m"
+
+CLASSPATH1=./datacrow.jar:./help/
+CLASSPATH2=`build-classpath hsqldb jaudiotagger JTattoo laf-plugin liquidlnf metadata-extractor`
+CLASSPATH3=`build-classpath jakarta-commons-logging log4j xalan-j2 xalan-j2-serializer xerces-j2 xsltc`
+CLASSPATH4=`build-classpath datacrow`
+CLASSPATH=$CLASSPATH1:$CLASSPATH2:$CLASSPATH3:$CLASSPATH4
+MAIN_CLASS="net.datacrow.core.DataCrow"
+
+echo "launching datacrow ..."
+run -dir:$HOME/.datacrow "$@"
+echo "exiting datacrow ..."
diff --git a/datacrow.spec b/datacrow.spec
new file mode 100644 (file)
index 0000000..8666814
--- /dev/null
@@ -0,0 +1,200 @@
+# TODO
+# - bashism: Requires: /bin/bash
+# - bundled ix86 binaries: Requires:  libc.so.6 libc.so.6(GLIBC_2.0)
+
+%define        ver     %(echo %{version} | tr . _)
+Summary:       Data Crow is a movie, video, book, software, and music cataloguer/database
+Name:          datacrow
+Version:       3.9.3
+Release:       0.3
+License:       GPL v3
+Group:         X11/Applications
+URL:           http://www.datacrow.net/
+Source0:       http://downloads.sourceforge.net/datacrow/%{name}_%{ver}_source.zip
+# Source0-md5: 48530322114dc028457a31f6699654f2
+Source1:       %{name}.sh
+Source2:       %{name}.desktop
+#BuildRequires:        JTattoo
+BuildRequires: ant
+#BuildRequires:        batik
+#BuildRequires:        cobra
+BuildRequires: dos2unix
+BuildRequires: fdupes
+#BuildRequires:        fop
+#BuildRequires:        fop-javadoc
+BuildRequires: jakarta-commons-io
+#BuildRequires:        jaudiotagger
+BuildRequires: java-commons-codec
+BuildRequires: java-commons-logging
+BuildRequires: java-cup
+#BuildRequires:        java-devel-openjdk
+BuildRequires: java-hsqldb
+BuildRequires: java-log4j
+BuildRequires: java-xalan
+#BuildRequires:        java-xerces
+BuildRequires: java-xml-commons
+BuildRequires: jdk >= 1.6
+BuildRequires: jpackage-utils
+#BuildRequires:        liquidlnf
+#BuildRequires:        metadata-extractor
+#BuildRequires:        servletapi5
+BuildRequires: unzip
+#BuildRequires:        update-alternatives
+#BuildRequires:        xalan-j2-xsltc
+#BuildRequires:        xmlbeans
+#Requires:     batik
+#Requires:     cobra
+Requires:      fop
+Requires:      jakarta-commons-io
+#Requires:     jaudiotagger
+Requires:      java-commons-codec
+Requires:      java-commons-logging
+Requires:      java-hsqldb
+Requires:      java-log4j
+Requires:      java-xalan
+Requires:      java-xerces
+Requires:      jpackage-utils
+Requires:      jre >= 1.6
+#Requires:     laf-plugin
+#Requires:     liquidlnf
+#Requires:     metadata-extractor
+#Requires:     xalan-j2-xsltc
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Always wanted to manage all your collections in one product? You want
+a product you can customize to your needs? Your search ends here!
+Using Data Crow allows you to create a huge database containing all
+your collected items.
+
+A lot of work? No! Data Crow retrieves information from the web for
+you. Including front covers, screenshots and links to the online
+information.
+
+Data Crow is a movie, video, book, software, and music cataloguer
+database. It uses freeDB, Amazon, and IMDB Web services. It is highly
+customizable, easy to use, and feature rich. It has PDF reporting. It
+supports DVDs, audio CDs, and many audio and video file formats.
+
+%package webmodule
+Summary:       Webmodule for datacrow
+Group:         X11/Applications/Multimedia
+Requires:      %{name} = %{version}-%{release}
+
+%description webmodule
+Webmodule for datacrow.
+
+The web module allows multiple users to connect to one Data Crow
+instance remotely at the same time.
+
+%prep
+%setup -qc
+mv %{name}/* .
+
+%build
+export LC_ALL=en_US # source code not US-ASCII
+%ant \
+       -Dfile.encoding=iso-8859-1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# discid
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p plugins/discid/linux/discid $RPM_BUILD_ROOT%{_bindir}
+
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}/%{name}
+cp -p %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
+
+# libs
+install -d $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+cp -p lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+for i in chart html jetty laf pdf xml; do
+       install -d $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/$i
+       cp -p lib/$i/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/$i
+done
+
+# plugins
+install -d $RPM_BUILD_ROOT%{_javadir}/%{name}/plugins
+cp -p plugins/*.class $RPM_BUILD_ROOT%{_javadir}/%{name}/plugins
+
+# services, resources, icons, help, ..
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+for i in help icons modules reports resources webapp services upgrade; do
+       install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/$i
+       cp -a $i $RPM_BUILD_ROOT%{_datadir}/%{name}
+done
+rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}/webapp/datacrow/WEB-INF/src
+cp -p *.properties $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+# startscript
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+# icon
+install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -p $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
+
+# menu
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc readme/*
+%attr(755,root,root) %{_bindir}/datacrow
+%attr(755,root,root) %{_bindir}/discid
+
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/*.jar
+%dir %{_javadir}/%{name}/lib
+%{_javadir}/%{name}/lib/*.jar
+%{_javadir}/%{name}/lib/html
+%dir %{_javadir}/%{name}/lib/pdf
+%{_javadir}/%{name}/lib/pdf/*.jar
+%dir %{_javadir}/%{name}/lib/xml
+%{_javadir}/%{name}/lib/xml/*.jar
+%dir %{_javadir}/%{name}/lib/chart
+%{_javadir}/%{name}/lib/chart/*.jar
+%dir %{_javadir}/%{name}/lib/laf
+%{_javadir}/%{name}/lib/laf/*.jar
+%dir %{_javadir}/%{name}/plugins
+%{_javadir}/%{name}/plugins/*.class
+
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.properties
+%dir %{_datadir}/%{name}/help
+%{_datadir}/%{name}/help/*
+%dir %{_datadir}/%{name}/icons
+%{_datadir}/%{name}/icons/*
+%dir %{_datadir}/%{name}/modules
+%{_datadir}/%{name}/modules/.*
+%{_datadir}/%{name}/modules/*
+%dir %{_datadir}/%{name}/reports
+%{_datadir}/%{name}/reports/*
+%dir %{_datadir}/%{name}/resources
+%{_datadir}/%{name}/resources/*.txt
+%{_datadir}/%{name}/resources/*.properties
+#%dir %{_datadir}/%{name}/themes
+#%{_datadir}/%{name}/themes/*.zip
+%dir %{_datadir}/%{name}/upgrade
+%{_datadir}/%{name}/upgrade/*
+%{_desktopdir}/*.desktop
+%{_pixmapsdir}/*.png
+
+# datacrow wants to control services ...
+%defattr(664,root,users,775)
+%dir %{_datadir}/%{name}/services
+%{_datadir}/%{name}/services/*.jar
+
+%files webmodule
+%defattr(644,root,root,755)
+#%doc readme/webmodule/*.txt
+%dir %{_javadir}/%{name}/lib/jetty
+%{_javadir}/%{name}/lib/jetty/*.jar
+%dir %{_datadir}/%{name}/webapp
+%{_datadir}/%{name}/webapp/*
This page took 0.047752 seconds and 4 git commands to generate.