
On Wed, Sep 19, 2012 at 06:53:31PM +0200, Carlos E. R. wrote:
On 2012-09-19 18:23, Lars Müller wrote:
A pseudo package with the provides and requires is not this hard and should be easy to establish by the comminity.
Well, I tried, and failed. This is why I'm asking for help.
I created a "java" directory. I created there a Makefile:
+++···················· all: dummie_java-sun gcc dummie_java-sun.c -o dummie_java-sun
install: install dummie_java-sun /usr/local/bin ····················++-
and a dummie_java-sun.c
+++···················· #include <stdio.h> int main() { printf("Este programa es un dummie para que el rpm crea que hay un java-1_6_0-sun.rpm en el sistema\n"); } ····················++-
then I run checkinstall, and I get an rpm:
cer@Telcontar:~/Compilaciones/dummies/java> rpm -q java java-1.6.0-999.x86_64
but this rpm does not fool yast, it doesn't have the needed clauses which I don't know what they are nor how to create :-(
This is not about to foul. It's about to understand what's going on and then you'll see what's missing. As soon as you know what's required you know what the pseudo package has to provide. Very likely a line like: Provides: java is required. In the spec file of the java-1_7_0-openjdk package we have currently: Provides: java = %{javaver} while javaver was defined before. For beginning with your tweaking you might keep this extra complexity out. In http://lists.openSUSE.org/opensuse-factory/2012-09/msg00736.html I stressed other issues I see. I suggest to summarize the needs and possible solutions in a shared document. Maybe in the openSUSE wiki? But this only makes sense if someone is willing to maintain this as I tried to outline in the mail accessible from the archive URL quoted above. Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany