I am attempting to add an RPM package for Apache Jena to Fedora Linux.
The RPM .spec file and details on the packaging process can be found
in Red Hat Bugzilla Bug 1193730
(https://bugzilla.redhat.com/show_bug.cgi?id=1193730).

During packaging, I ended up changing the line endings for a few files:

# Address "wrong-file-end-of-line-encoding" warnings from rpmlint

dos2unix javadoc-arq/META-INF/MANIFEST.MF
dos2unix javadoc-core/META-INF/MANIFEST.MF
dos2unix javadoc-sdb/META-INF/MANIFEST.MF
dos2unix javadoc-tdb/META-INF/MANIFEST.MF
dos2unix src-examples/data/eswc-2006-09-21.rdf
dos2unix src-examples/data/test1.owl
dos2unix src-examples/tdb/examples/ExTDB1.java
dos2unix src-examples/tdb/examples/ExTDB2.java
dos2unix src-examples/tdb/examples/ExTDB3.java
dos2unix src-examples/tdb/examples/ExTDB4.java
dos2unix src-examples/tdb/examples/ExTDB5.java

I also used sed to update the scripts in /bin so that they used
/etc/jena-log4j.properties and found the .jar files in the
system-level jar directory:

# Modify the scripts to use the sysconfdir jena-log4j.properties file
# instead of relative paths.

find bin -type f -exec sed -i
's|LOGGING="${LOGGING:--Dlog4j.configuration=file:$JENA_HOME/jena-log4j.properties}"|LOGGING="${LOGGING:--Dlog4j.configuration=file:%{_sysconfdir}/jena-log4j.properties}"|g'
{} \;

# Modify the scripts to use the javadir for JAR dependencies instead
# of relative paths.

find bin -type f -exec sed -i 's|-cp "$JENA_CP"|-cp
"%{_javadir}/%{name}/*"|g' {} \;

Let me know if you have any interest in the Fedora package or feedback
on the packaging.

Reply via email to